show relevant error message

conf^2
Aniket-Engg 2 years ago committed by Aniket
parent 36f0c4ba37
commit 1e25e5bbac
  1. 2
      apps/remix-ide/src/app/providers/injected-provider.tsx

@ -99,7 +99,7 @@ export abstract class InjectedProvider extends Plugin implements IProvider {
resolve({ jsonrpc: '2.0', error: 'no return data provided', id: data.id })
}
} catch (error) {
resolve({ jsonrpc: '2.0', error: error.message, id: data.id })
resolve({ jsonrpc: '2.0', error: error.data && error.data.message ? error.data.message : error.message, id: data.id })
}
}
}

Loading…
Cancel
Save