Commit 48afb814 authored by yann300's avatar yann300 Committed by ioedeveloper

catch error when activating a plugin

parent f2ec8cbc
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment