mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
always raise ValueException
This commit is contained in:
@@ -196,7 +196,7 @@ proc serve() =
|
||||
raise newException(ValueError, "didn't get all the hexbytes")
|
||||
var size = 0
|
||||
if parseHex(sizeHex, size) == 0:
|
||||
raiseRecoverableError("invalid size hex: " & $sizeHex)
|
||||
raise newException(ValueError, "invalid size hex: " & $sizeHex)
|
||||
var messageBuffer = ""
|
||||
if client.recv(messageBuffer, size, 3000) != size:
|
||||
raise newException(ValueError, "didn't get all the bytes")
|
||||
|
||||
Reference in New Issue
Block a user