From 784383aec44fba5df175da992722dd137564e82b Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Fri, 17 May 2024 01:39:11 +0300 Subject: [PATCH] fix results stuff --- codex/utils/asyncthreads.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex/utils/asyncthreads.nim b/codex/utils/asyncthreads.nim index 19a19adc..3a3db170 100644 --- a/codex/utils/asyncthreads.nim +++ b/codex/utils/asyncthreads.nim @@ -15,7 +15,7 @@ proc awaitThreadResult*[T](signal: ThreadSignalPtr, handle: Flowvar[T]): Future[ template closeSig() = let sigRes = signal.close() if sigRes.isErr: - return failure(sigRes.error()) + raise (ref Defect)(msg: sigRes.error()) var res: T