mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 18:32:11 +00:00
nimweb: Show output of failed external command (#5343)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user