projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
316061e
)
Add better diagnostics for invalid properties
author
Marek Safar
<marek.safar@gmail.com>
Wed, 31 Jul 2013 16:00:05 +0000
(18:00 +0200)
committer
Marek Safar
<marek.safar@gmail.com>
Wed, 31 Jul 2013 16:00:38 +0000
(18:00 +0200)
mcs/mcs/import.cs
patch
|
blob
|
history
diff --git
a/mcs/mcs/import.cs
b/mcs/mcs/import.cs
index d5788cc35c08aa7a267e5ea65f390b8ff26eae24..2d787dd4e3095c4746c71e22abd13b0480568ba0 100644
(file)
--- a/
mcs/mcs/import.cs
+++ b/
mcs/mcs/import.cs
@@
-2110,7
+2110,13
@@
namespace Mono.CSharp
if (get == null && set == null)
continue;
- imported = importer.CreateProperty (p, declaringType, get, set);
+ try {
+ imported = importer.CreateProperty (p, declaringType, get, set);
+ } catch (Exception ex) {
+ throw new InternalErrorException (ex, "Could not import property `{0}' inside `{1}'",
+ p.Name, declaringType.GetSignatureForError ());
+ }
+
if (imported == null)
continue;