add a exception catch

pull/7/head
Liana Husikyan 5 years ago committed by Aniket
parent e656e6c79b
commit a481632b53
  1. 4
      remix-solidity/src/compiler/compiler-worker.js

@ -16,7 +16,11 @@ module.exports = function (self) {
compileJSON = null
try {
self.importScripts(data.data)
} catch (exception) {
return JSON.stringify({ error: 'Uncaught JavaScript exception:\n' + exception })
}
var compiler = solc(self.Module)

Loading…
Cancel
Save