Skip to content

Commit

Permalink
Fix #22
Browse files Browse the repository at this point in the history
Display the content of the error object when the compilation fails
  • Loading branch information
chevdor committed Sep 9, 2016
1 parent 1a6183a commit 990e2f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ function setupMethods (soljson) {
} else {
result = compileJSON(input, optimise);
}

if (JSON.parse(result).errors)
console.log("Compiled with Errors:", result);
return JSON.parse(result);
};

Expand Down

0 comments on commit 990e2f5

Please sign in to comment.