fix error message

pull/5343/head
yann300 3 weeks ago committed by Aniket
parent ee7b215f24
commit be1f1804fa
  1. 2
      apps/remix-ide/src/app/tabs/web3-provider.js

@ -86,7 +86,7 @@ export class Web3ProviderModule extends Plugin {
try { try {
resultFn(null, await provider.sendAsync(payload)) resultFn(null, await provider.sendAsync(payload))
} catch (e) { } catch (e) {
resultFn(e.error ? new Error(e.error) : new Error(e)) resultFn(e.error ? e.error : e)
} }
} else { } else {
reject(new Error('User denied permission')) reject(new Error('User denied permission'))

Loading…
Cancel
Save