catch error when activating a plugin
pull/262/head
yann300 4 years ago committed by GitHub
commit 5fb7577dc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/app.js
  2. 2
      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)) {
await appManager.activatePlugin(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