diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-14 11:58:01 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-14 11:58:01 +0100 |
commit | 811484c125162fa30aec11288e1ef3101382de88 (patch) | |
tree | c2f07f7792eb817a0682f389c5b696eb6a3cadb7 /src/buffer | |
parent | cd6a4c275030e9f66eb6807fc965d667a67ce55f (diff) | |
download | chawan-811484c125162fa30aec11288e1ef3101382de88.tar.gz |
cssparser: check for EOF in first read chunk
To-do: use decoderstream...
Diffstat (limited to 'src/buffer')
-rw-r--r-- | src/buffer/buffer.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer/buffer.nim b/src/buffer/buffer.nim index 5d69325f..d28ebbb0 100644 --- a/src/buffer/buffer.nim +++ b/src/buffer/buffer.nim @@ -1107,8 +1107,8 @@ proc runBuffer(buffer: Buffer, rfd: int) = if event.fd == rfd: try: buffer.readCommand() - except IOError: - #eprint "ERROR IN BUFFER", $buffer.location & "\nMESSAGE:", + except EOFError: + #eprint "EOF error", $buffer.location & "\nMESSAGE:", # getCurrentExceptionMsg() & "\n", # getStackTrace(getCurrentException()) break loop |