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