diff options
author | flyx <github@flyx.org> | 2017-02-06 17:31:44 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-02-06 17:31:44 +0100 |
commit | ecdf6045014fdc31b6407d202f188c2243f045c8 (patch) | |
tree | 1e6a534fe2e7f9e1daa5351a29fd479e3175ff01 /tools | |
parent | 4c4f6541d956b3d5ee098fd4e3d4ab9ca794fc64 (diff) | |
download | Nim-ecdf6045014fdc31b6407d202f188c2243f045c8.tar.gz |
nimweb: Show output of failed external command (#5343)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/nimweb.nim | 4 |
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. |