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
|
return
|
||||||
var readSuccessful = false
|
var readSuccessful = false
|
||||||
try:
|
try:
|
||||||
var p = startProcess(cmd, options={poEvalCommand})
|
var p = startProcess(cmd, options={poEvalCommand, poStderrToStdout})
|
||||||
if input.len != 0:
|
if input.len != 0:
|
||||||
p.inputStream.write(input)
|
p.inputStream.write(input)
|
||||||
p.inputStream.close()
|
p.inputStream.close()
|
||||||
|
|
@ -41,7 +41,7 @@ proc opGorge*(cmd, input, cache: string): string =
|
||||||
if not readSuccessful: result = ""
|
if not readSuccessful: result = ""
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
var p = startProcess(cmd, options={poEvalCommand})
|
var p = startProcess(cmd, options={poEvalCommand, poStderrToStdout})
|
||||||
if input.len != 0:
|
if input.len != 0:
|
||||||
p.inputStream.write(input)
|
p.inputStream.write(input)
|
||||||
p.inputStream.close()
|
p.inputStream.close()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue