Skip to content

Commit 53988f1

Browse files
committed
change COMException default message
1 parent 70a07d4 commit 53988f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libraries/System.Private.CoreLib/src/Resources/Strings.resx

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
<value>Must specify property Set or Get or method call for a COM Object.</value>
258258
</data>
259259
<data name="Arg_COMException" xml:space="preserve">
260-
<value>Error HRESULT E_FAIL has been returned from a call to a COM component.</value>
260+
<value>Unexpected HRESULT has been returned from a call to a COM component.</value>
261261
</data>
262262
<data name="Arg_COMPropSetPut" xml:space="preserve">
263263
<value>Only one of the following binding flags can be set: BindingFlags.SetProperty, BindingFlags.PutDispProperty, BindingFlags.PutRefDispProperty.</value>

src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/ExternalException.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public override string ToString()
5353

5454
string s = $"{GetType()} (0x{HResult:X8})";
5555

56-
if (!string.IsNullOrEmpty(message ?? SR.Arg_ExternalException))
56+
if (!string.IsNullOrEmpty(message))
5757
{
5858
s += ": " + message;
5959
}

0 commit comments

Comments
 (0)