diff options
author | Paolo Molaro <lupus@oddwiz.org> | 2003-01-12 22:15:31 +0300 |
---|---|---|
committer | Paolo Molaro <lupus@oddwiz.org> | 2003-01-12 22:15:31 +0300 |
commit | db1f8f193e81fe54d76b5d8ec1d463e0527ede14 (patch) | |
tree | 3249b15e3cd8a89a43d706495f6b8087e590f504 | |
parent | 2a1ea43f4f0406662a80c8838731f4350b954631 (diff) |
Sun Jan 12 19:58:42 CET 2003 Paolo Molaro <lupus@ximian.com>
* attribute.cs: only set GuidAttr to true when we have a
GuidAttribute.
svn path=/trunk/mcs/; revision=10435
-rw-r--r-- | mcs/mcs/attribute.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mcs/mcs/attribute.cs b/mcs/mcs/attribute.cs index cb206c030e5..6f0c7cda14d 100644 --- a/mcs/mcs/attribute.cs +++ b/mcs/mcs/attribute.cs @@ -129,7 +129,7 @@ namespace Mono.CSharp { bool MethodImplAttr = false;
bool MarshalAsAttr = false;
- bool GuidAttr = true;
+ bool GuidAttr = false;
UsageAttr = false;
bool DoCompares = true;
@@ -346,7 +346,7 @@ namespace Mono.CSharp { //
Report.Warning (
-100, Location, "NullReferenceException while trying to create attribute. Something's wrong!");
- } catch {
+ } catch (Exception e) {
//
// Sample:
// using System.ComponentModel;
@@ -356,7 +356,7 @@ namespace Mono.CSharp { Report.Warning (
-23, Location,
"The compiler can not encode this attribute in .NET due to\n" +
- "\ta bug in the .NET runtime. Try the Mono runtime");
+ "\ta bug in the .NET runtime. Try the Mono runtime.\nThe error was: " + e.Message);
}
return cb;
|