mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Emit a 1-based line number in error messages
* module/ice-9/boot-9.scm (exception-printers): Add 1 to the 0-based line number.
This commit is contained in:
parent
9228f9eb95
commit
153c4a4afa
1 changed files with 1 additions and 1 deletions
|
@ -682,7 +682,7 @@ If there is no handler at all, Guile prints an error and then exits."
|
|||
(let ((filename (or (cadr source) "<unnamed port>"))
|
||||
(line (caddr source))
|
||||
(col (cdddr source)))
|
||||
(format port "~a:~a:~a: " filename line col))
|
||||
(format port "~a:~a:~a: " filename (1+ line) col))
|
||||
(format port "ERROR: "))))
|
||||
|
||||
(set! set-exception-printer!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue