Skip to content

Commit

Permalink
change COMException default message
Browse files Browse the repository at this point in the history
  • Loading branch information
OwnageIsMagic committed Dec 25, 2023
1 parent 70a07d4 commit 53988f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
<value>Must specify property Set or Get or method call for a COM Object.</value>
</data>
<data name="Arg_COMException" xml:space="preserve">
<value>Error HRESULT E_FAIL has been returned from a call to a COM component.</value>
<value>Unexpected HRESULT has been returned from a call to a COM component.</value>
</data>
<data name="Arg_COMPropSetPut" xml:space="preserve">
<value>Only one of the following binding flags can be set: BindingFlags.SetProperty, BindingFlags.PutDispProperty, BindingFlags.PutRefDispProperty.</value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public override string ToString()

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

if (!string.IsNullOrEmpty(message ?? SR.Arg_ExternalException))
if (!string.IsNullOrEmpty(message))
{
s += ": " + message;
}
Expand Down

0 comments on commit 53988f1

Please sign in to comment.