From a15ddf4013c5157e7532c71aa2045e07947782fb Mon Sep 17 00:00:00 2001 From: Veladus Date: Mon, 11 Dec 2017 21:48:22 +0100 Subject: [PATCH] Improved error reporting --- compiler/semstmts.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index d804beff56..a44b2fafc4 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -736,7 +736,7 @@ proc semRaise(c: PContext, n: PNode): PNode = if base.sym.name.s == "Exception": break if base.lastSon == nil: - localError(n.info, errExprIsNoException) + localError(n.info, "raised object of type $1 does not inherit from Exception", [typ.sym.name.s]) return base = base.lastSon