Skip to content

Commit

Permalink
Fix error handling in runCode (in case loadContract fails)
Browse files Browse the repository at this point in the history
  • Loading branch information
axic authored and holgerd77 committed Jan 4, 2019
1 parent 7169992 commit 08079ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/runCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ module.exports = function (opts, cb) {
loadContract(runVm)

// iterate through the given ops until something breaks or we hit STOP
function runVm () {
function runVm (err) {
if (err) {
return parseVmResults(err)
}
async.whilst(vmIsActive, iterateVm, parseVmResults)
}

Expand Down

0 comments on commit 08079ee

Please sign in to comment.