From b725e0ed4d6a799cda2074b629883eaae92a1706 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Thu, 25 Feb 2021 05:02:00 -0800 Subject: [PATCH] make jsconsole.assertion errors less confusing in logs (#17179) * make jsconsole.assertion errors less confusing in logs * address comments * fixup --- lib/js/jsconsole.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/js/jsconsole.nim b/lib/js/jsconsole.nim index 87dd9eeec8..8b0bc26209 100644 --- a/lib/js/jsconsole.nim +++ b/lib/js/jsconsole.nim @@ -75,7 +75,7 @@ since (1, 5): func getMsg(info: InstantiationInfo; msg: string): string = var temp = "" temp.toLocation(info.filename, info.line, info.column + 1) - result.addQuoted(temp) + result.addQuoted("[jsAssert] " & temp) result.add ',' result.addQuoted(msg)