fix(repl): Extra newline in stdout bypass
This commit is contained in:
parent
2593c5bf60
commit
855a882f7b
|
@ -269,7 +269,7 @@ def execute (command: Protocol.Command): MainM Json := do
|
||||||
| .ok args => do
|
| .ok args => do
|
||||||
let (msg, result) ← IO.FS.withIsolatedStreams (isolateStderr := false) $ comm args
|
let (msg, result) ← IO.FS.withIsolatedStreams (isolateStderr := false) $ comm args
|
||||||
if !msg.isEmpty then
|
if !msg.isEmpty then
|
||||||
IO.eprintln s!"stdout: {msg}"
|
IO.eprint s!"stdout: {msg}"
|
||||||
match result with
|
match result with
|
||||||
| .ok result => return toJson result
|
| .ok result => return toJson result
|
||||||
| .error ierror => return toJson ierror
|
| .error ierror => return toJson ierror
|
||||||
|
|
Loading…
Reference in New Issue