Skip to content

Commit

Permalink
rm warning
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed Dec 25, 2022
1 parent 8bf9a18 commit ff3a823
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion balls.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ff3a823

Please sign in to comment.