You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where the parts in angle brackets are replaced with real content but the parts in square brackets, including the "[object Object]" at the end is not.
Expected behavior
The [object Object] is not part of the error message string but instead replaced by something more useful, or simply removed and the object is included in the error object alongside "code", "message", and "stack". Something like what's shown at the end of this line would be more useful than [object Object].
Browser details (please complete the following information):
OS: Windows 10
Browser: 83.0.4103.116 (Official Build) (64-bit)
MetaMask Version: 7.7.9
Additional context (Error Messages, etc.)
I suspect somewhere there is a + concatenation between 'rpc error with payload ' and an error object where they should be combined in the same object, and not passed/altered/returned as just a string.
The text was updated successfully, but these errors were encountered:
Describe the bug
Metamask errors obscure helpful information into [object Object] before providing the error to the using dapp.
To Reproduce (REQUIRED)
Trigger an RPC error (sorry, no easy examples of how at the moment).
As shown for example in these postings, when there is an RPC error MetaMask returns (and console-logs) an error message like this:
where the parts in angle brackets are replaced with real content but the parts in square brackets, including the "[object Object]" at the end is not.
Expected behavior
The [object Object] is not part of the error message string but instead replaced by something more useful, or simply removed and the object is included in the error object alongside "code", "message", and "stack". Something like what's shown at the end of this line would be more useful than [object Object].
Browser details (please complete the following information):
Additional context (Error Messages, etc.)
I suspect somewhere there is a
+
concatenation between'rpc error with payload '
and an error object where they should be combined in the same object, and not passed/altered/returned as just a string.The text was updated successfully, but these errors were encountered: