catch error when activating a plugin

pull/262/head
yann300 5 years ago
parent b451f094ae
commit caf501d8f9
  1. 4
      src/app.js
  2. 2
      src/app/tabs/debugger-tab.js

@ -403,7 +403,11 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
// Set workspace after initial activation // Set workspace after initial activation
if (Array.isArray(workspace)) { if (Array.isArray(workspace)) {
try {
await appManager.activatePlugin(workspace) await appManager.activatePlugin(workspace)
} catch (e) {
console.error(e)
}
} else { } else {
// activate solidity plugin // activate solidity plugin
appManager.ensureActivated('solidity') 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') // this.call('manager', 'activatePlugin', 'udapp')
return this.el return this.el

Loading…
Cancel
Save