diff options
author | bptato <nincsnevem662@gmail.com> | 2023-05-16 13:17:41 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-05-16 13:18:47 +0200 |
commit | 4e0fd8c7ef2ad2f61c1ac0572e02b92b1c42b688 (patch) | |
tree | 83adafc3a2046bb8af09d7c57340dc9374eebbd6 /src/ips/forkserver.nim | |
parent | 951d587f7edf3544d30ba039530a1d19b7e9db78 (diff) | |
download | chawan-4e0fd8c7ef2ad2f61c1ac0572e02b92b1c42b688.tar.gz |
Refactor config, add charset opts
Only document-charset supported for now.
Diffstat (limited to 'src/ips/forkserver.nim')
-rw-r--r-- | src/ips/forkserver.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ips/forkserver.nim b/src/ips/forkserver.nim index 009c5491..e7ddf1c0 100644 --- a/src/ips/forkserver.nim +++ b/src/ips/forkserver.nim @@ -75,8 +75,8 @@ proc forkLoader(ctx: var ForkServerContext, config: LoaderConfig): Pid = let e = getCurrentException() # taken from system/excpt.nim let msg = e.getStackTrace() & "Error: unhandled exception: " & e.msg & - " [" & $e.name & "]" - eprint(msg) + " [" & $e.name & "]\n" + stderr.write(msg) doAssert false let readfd = pipefd[0] # get read discard close(pipefd[1]) # close write @@ -121,8 +121,8 @@ proc forkBuffer(ctx: var ForkServerContext): Pid = let e = getCurrentException() # taken from system/excpt.nim let msg = e.getStackTrace() & "Error: unhandled exception: " & e.msg & - " [" & $e.name & "]" - eprint(msg) + " [" & $e.name & "]\n" + stderr.write(msg) doAssert false ctx.children.add((pid, loaderPid)) return pid |