From 21616e35a78594a7335005d81efe2c91eec6824f Mon Sep 17 00:00:00 2001 From: genotrance Date: Sun, 2 Jun 2019 06:12:20 -0500 Subject: [PATCH] Fix issue #655 (#661) * Fix issue #655 * Update nimscriptwrapper.nim --- src/nimblepkg/nimscriptwrapper.nim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/nimblepkg/nimscriptwrapper.nim b/src/nimblepkg/nimscriptwrapper.nim index 473fdad..39df926 100644 --- a/src/nimblepkg/nimscriptwrapper.nim +++ b/src/nimblepkg/nimscriptwrapper.nim @@ -119,7 +119,12 @@ proc execScript(scriptName, actionName: string, options: Options): (output, exitCode) = execNimscript(nimsFile, scriptName.parentDir(), actionName, options) if exitCode != 0: - raise newException(NimbleError, output) + let errMsg = + if output.len != 0: + output + else: + "Exception raised during nimble script execution" + raise newException(NimbleError, errMsg) let j =