make jsconsole.assertion errors less confusing in logs (#17179)
* make jsconsole.assertion errors less confusing in logs * address comments * fixup
This commit is contained in:
parent
f07bdbe945
commit
b725e0ed4d
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ since (1, 5):
|
||||||
func getMsg(info: InstantiationInfo; msg: string): string =
|
func getMsg(info: InstantiationInfo; msg: string): string =
|
||||||
var temp = ""
|
var temp = ""
|
||||||
temp.toLocation(info.filename, info.line, info.column + 1)
|
temp.toLocation(info.filename, info.line, info.column + 1)
|
||||||
result.addQuoted(temp)
|
result.addQuoted("[jsAssert] " & temp)
|
||||||
result.add ','
|
result.add ','
|
||||||
result.addQuoted(msg)
|
result.addQuoted(msg)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue