catch error when activating a plugin

pull/5370/head
yann300 4 years ago committed by ioedeveloper
parent 0fe8fa7c57
commit f62ed336a7
  1. 4
      apps/remix-ide/src/app.js
  2. 2
      apps/remix-ide/src/app/tabs/debugger-tab.js

@ -404,7 +404,11 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
// Set workspace after initial activation
if (Array.isArray(workspace)) {
try {
await appManager.activatePlugin(workspace)
} catch (e) {
console.error(e)
}
} else {
// activate solidity plugin
appManager.ensureActivated('solidity')

@ -64,7 +64,7 @@ class DebuggerTab extends ViewPlugin {
}
)
this.call('manager', 'activatePlugin', 'source-verification')
this.call('manager', 'activatePlugin', 'source-verification').catch(e => console.log(e.message))
// this.call('manager', 'activatePlugin', 'udapp')
return this.el

Loading…
Cancel
Save