From e8045317c40a19b6675188efa1558297d6e2b53b Mon Sep 17 00:00:00 2001 From: Mathew Cormier Date: Thu, 27 Jun 2019 12:52:08 -0400 Subject: [PATCH] New error message --- packages/truffle-compile/profiler.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } }