From fa7b75782361fb31e74117a7e84ebe8fcda922c0 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Tue, 29 Jan 2019 13:04:21 +0100 Subject: [PATCH] Remove unused variable --- lib/system.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system.nim b/lib/system.nim index a7cf251f64..b9be52308d 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -4407,7 +4407,7 @@ template doAssertRaises*(exception: typedesc, code: untyped): typed = wrong = true except exception: discard - except Exception as exc: + except Exception: raiseAssert(astToStr(exception) & " wasn't raised, another error was raised instead by:\n"& astToStr(code))