about summary refs log tree commit diff stats
path: root/src/local/client.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-07-30 19:46:22 +0200
committerbptato <nincsnevem662@gmail.com>2024-07-30 19:58:42 +0200
commitafec3aabd21d418603a8566393750e789ee6007a (patch)
tree41308537a21906c5bd40b70feded49e3e5227e26 /src/local/client.nim
parent98fdd778d2c222b9b6b61d181680a74a09ecf44f (diff)
downloadchawan-afec3aabd21d418603a8566393750e789ee6007a.tar.gz
console, client: optimize console.log (etc.)
use JSValue varargs instead
Diffstat (limited to 'src/local/client.nim')
-rw-r--r--src/local/client.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/local/client.nim b/src/local/client.nim
index b547f810..f63668d2 100644
--- a/src/local/client.nim
+++ b/src/local/client.nim
@@ -530,7 +530,7 @@ proc handleError(client: Client; fd: int) =
     if fd in client.fdmap:
       let container = client.fdmap[fd]
       if container != client.consoleWrapper.container:
-        client.console.log("Error in buffer", $container.url)
+        client.console.error("Error in buffer", $container.url)
       else:
         client.consoleWrapper.container = nil
       client.selector.unregister(fd)
@@ -695,7 +695,7 @@ proc dumpBuffers(client: Client) =
       client.pager.drawBuffer(container, stdout)
       client.pager.handleEvents(container)
     except IOError:
-      client.console.log("Error in buffer", $container.url)
+      client.console.error("Error in buffer", $container.url)
       # check for errors
       client.handleRead(client.forkserver.estream.fd)
       client.quit(1)