Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
New error message
Browse files Browse the repository at this point in the history
  • Loading branch information
macor161 committed Jun 27, 2019
1 parent 86a2cc2 commit e804531
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/truffle-compile/profiler.js
Expand Up @@ -91,7 +91,11 @@ module.exports = {
} catch (e) {
// JSON.parse throws SyntaxError objects
return e instanceof SyntaxError
? c(new Error("Invalid artifact: " + jsonData[i].file))
? c(
new Error(
"Problem parsing artifact: " + jsonData[i].file
)
)
: c(e);
}
}
Expand Down

0 comments on commit e804531

Please sign in to comment.