summary refs log tree commit diff stats
path: root/lib/system/channels_builtin.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system/channels_builtin.nim')
-rw-r--r--lib/system/channels_builtin.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/channels_builtin.nim b/lib/system/channels_builtin.nim
index 088003e4b..02b4d8cbf 100644
--- a/lib/system/channels_builtin.nim
+++ b/lib/system/channels_builtin.nim
@@ -394,7 +394,7 @@ proc llRecv(q: PRawChannel, res: pointer, typ: PNimType) =
   q.ready = false
   if typ != q.elemType:
     releaseSys(q.lock)
-    sysFatal(ValueError, "cannot receive message of wrong type")
+    raise newException(ValueError, "cannot receive message of wrong type")
   rawRecv(q, res, typ)
   if q.maxItems > 0 and q.count == q.maxItems - 1:
     # Parent thread is awaiting in send. Wake it up.