diff --git a/packages/truffle-compile/profiler.js b/packages/truffle-compile/profiler.js index 46695c165ff..b5f323740c3 100644 --- a/packages/truffle-compile/profiler.js +++ b/packages/truffle-compile/profiler.js @@ -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); } }