summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
authorflyx <github@flyx.org>2017-02-06 17:31:44 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-02-06 17:31:44 +0100
commitecdf6045014fdc31b6407d202f188c2243f045c8 (patch)
tree1e6a534fe2e7f9e1daa5351a29fd479e3175ff01 /tools
parent4c4f6541d956b3d5ee098fd4e3d4ab9ca794fc64 (diff)
downloadNim-ecdf6045014fdc31b6407d202f188c2243f045c8.tar.gz
nimweb: Show output of failed external command (#5343)
Diffstat (limited to 'tools')
-rw-r--r--tools/nimweb.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/nimweb.nim b/tools/nimweb.nim
index 29464f8e3..a082520e0 100644
--- a/tools/nimweb.nim
+++ b/tools/nimweb.nim
@@ -263,8 +263,8 @@ proc findNim(): string =
 
 proc exec(cmd: string) =
   echo(cmd)
-  let (_, exitCode) = osproc.execCmdEx(cmd)
-  if exitCode != 0: quit("external program failed")
+  let (outp, exitCode) = osproc.execCmdEx(cmd)
+  if exitCode != 0: quit outp
 
 proc sexec(cmds: openarray[string]) =
   ## Serial queue wrapper around exec.