From ff3a823e51224b25b64c94aa00fd3ae6cc0c62f2 Mon Sep 17 00:00:00 2001 From: Smooth Operator Date: Sun, 25 Dec 2022 12:15:49 -0500 Subject: [PATCH] rm warning --- balls.nim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/balls.nim b/balls.nim index 9aae7fb..7666a7a 100644 --- a/balls.nim +++ b/balls.nim @@ -652,7 +652,11 @@ proc wrapExcept(t: var Test): NimNode = var skipping = bindSym"SkipError" var failing = bindSym"FailError" var assertion = bindSym"AssertionDefect" - var catchall = bindSym"Exception" + var catchall = + when compiles(CatchableError): + bindSym"CatchableError" + else: + bindSym"Exception" var e1 {.used.} = genSym(nskLet, "e") var e2 {.used.} = genSym(nskLet, "e") var e3 {.used.} = genSym(nskLet, "e")