staticExec: redirect stderr to stdout so stderr is returned too
This commit is contained in:
parent
2552a0f4b0
commit
cd2fbb5f86
1 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ proc opGorge*(cmd, input, cache: string): string =
|
|||
return
|
||||
var readSuccessful = false
|
||||
try:
|
||||
var p = startProcess(cmd, options={poEvalCommand})
|
||||
var p = startProcess(cmd, options={poEvalCommand, poStderrToStdout})
|
||||
if input.len != 0:
|
||||
p.inputStream.write(input)
|
||||
p.inputStream.close()
|
||||
|
|
@ -41,7 +41,7 @@ proc opGorge*(cmd, input, cache: string): string =
|
|||
if not readSuccessful: result = ""
|
||||
else:
|
||||
try:
|
||||
var p = startProcess(cmd, options={poEvalCommand})
|
||||
var p = startProcess(cmd, options={poEvalCommand, poStderrToStdout})
|
||||
if input.len != 0:
|
||||
p.inputStream.write(input)
|
||||
p.inputStream.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue