1
Fork 0
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:
Neil Jerram 2011-05-12 23:16:05 +01:00
parent 9228f9eb95
commit 153c4a4afa

View file

@ -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!