Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change COMException default message
  • Loading branch information
OwnageIsMagic committed Dec 25, 2023
commit 53988f1546de9f9fd7ac260a2d5b075f9f55a0c2
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