fix returning internal error

pull/7/head
yann300 6 years ago
parent 0130806a6a
commit ef75723b90
  1. 2
      remix-solidity/src/compiler/compiler.js

@ -93,7 +93,7 @@ function Compiler (handleImportCall) {
result = compiler.compileStandardWrapper(input, missingInputsCallback)
result = JSON.parse(result)
} catch (exception) {
result = { error: 'Uncaught JavaScript exception:\n' + exception }
result = { error: { formattedMessage: 'Uncaught JavaScript exception:\n' + exception, severity: 'error', mode: 'panic' } }
}
compilationFinished(result, missingInputs, source)

Loading…
Cancel
Save