Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDick Porter <dick@acm.org>2003-03-20 12:49:03 +0300
committerDick Porter <dick@acm.org>2003-03-20 12:49:03 +0300
commit4be18ef0a53b99efb6925dc504e58f818307ac7b (patch)
tree1e157476554a381384b9482de02a53a6f71acb77 /mcs/class/System/System.ComponentModel
parentdc126d7e0693c2dc4d8f0ded709e60f08548e17e (diff)
2003-03-20 Dick Porter <dick@ximian.com>
* Win32Exception.cs: Made the fallback error more useful by reporting the error number svn path=/trunk/mcs/; revision=12699
Diffstat (limited to 'mcs/class/System/System.ComponentModel')
-rw-r--r--mcs/class/System/System.ComponentModel/ChangeLog5
-rwxr-xr-xmcs/class/System/System.ComponentModel/Win32Exception.cs2
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/System/System.ComponentModel/ChangeLog b/mcs/class/System/System.ComponentModel/ChangeLog
index 420f2ab1e44..7f4eb3d59bd 100644
--- a/mcs/class/System/System.ComponentModel/ChangeLog
+++ b/mcs/class/System/System.ComponentModel/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-20 Dick Porter <dick@ximian.com>
+
+ * Win32Exception.cs: Made the fallback error more useful by
+ reporting the error number
+
2003-03-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* MarshalByValueComponent.cs: removed a monotodo.
diff --git a/mcs/class/System/System.ComponentModel/Win32Exception.cs b/mcs/class/System/System.ComponentModel/Win32Exception.cs
index a7132592a4e..b88a3c80e5b 100755
--- a/mcs/class/System/System.ComponentModel/Win32Exception.cs
+++ b/mcs/class/System/System.ComponentModel/Win32Exception.cs
@@ -120,7 +120,7 @@ namespace System.ComponentModel
string message=(string)w32_errors[error_code];
if(message==null) {
- return(Locale.GetText("Some sort of w32 error occurred"));
+ return(Locale.GetText("Some sort of w32 error occurred: ") + error_code.ToString());
} else {
return(message);
}