From 3f89e84f7cf6016d8def5bd59bf2bbfa1646954c Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Thu, 14 Dec 2023 10:44:42 +0100 Subject: [PATCH] Raise Defect when unexpected exceptions occur --- asynctest/templates.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asynctest/templates.nim b/asynctest/templates.nim index 09616eb..bb7082b 100644 --- a/asynctest/templates.nim +++ b/asynctest/templates.nim @@ -11,7 +11,7 @@ template launderExceptions(body: typed) = except CatchableError as ex: raise ex except Exception as ex: - raise newException(CatchableError, ex.msg, ex) + raise newException(Defect, ex.msg, ex) template suite*(name, body) =