fixes #6148
This commit is contained in:
parent
129a599cd6
commit
d50260de20
1 changed files with 4 additions and 1 deletions
|
|
@ -72,6 +72,9 @@ proc raiseEInvalidCsv(filename: string, line, col: int,
|
||||||
msg: string) {.noreturn.} =
|
msg: string) {.noreturn.} =
|
||||||
var e: ref CsvError
|
var e: ref CsvError
|
||||||
new(e)
|
new(e)
|
||||||
|
if filename.len == 0:
|
||||||
|
e.msg = "Error: " & msg
|
||||||
|
else:
|
||||||
e.msg = filename & "(" & $line & ", " & $col & ") Error: " & msg
|
e.msg = filename & "(" & $line & ", " & $col & ") Error: " & msg
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue