From 74dbe1158ab74c716c350d6219e50884b71c472e Mon Sep 17 00:00:00 2001 From: Sebastien Moran Date: Fri, 16 Jun 2017 15:35:52 +0200 Subject: [PATCH] :bug: better error handling for setup files --- cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.js b/cli.js index a32f321..bb1d0b8 100755 --- a/cli.js +++ b/cli.js @@ -30,7 +30,7 @@ let setup; try { setup = jsonfile.readFileSync(`./${setupFile}`); } catch (error) { - let errorMessage = `'${setupFile}' could not be found.` + let errorMessage = `Something went wrong: ${error.stack}`; if (!customSetupFile) { errorMessage = 'You did not provide any specific setup file and no setup.json file has been found.'; }