From ecdf6045014fdc31b6407d202f188c2243f045c8 Mon Sep 17 00:00:00 2001 From: flyx Date: Mon, 6 Feb 2017 17:31:44 +0100 Subject: [PATCH] nimweb: Show output of failed external command (#5343) --- tools/nimweb.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/nimweb.nim b/tools/nimweb.nim index 29464f8e33..a082520e02 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.