1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

Fix line and column for read errors

* module/ice-9/read.scm (%read): Add 1 to both line and column: the
former to make 1-based user lines instead of 0-based Guile lines, and
the latter because apparently that's how we always did it :)  Fixes
This commit is contained in:
Andy Wingo 2021-04-29 21:46:31 +02:00
parent 8c1a26f4d4
commit 7da831af18

View file

@ -126,7 +126,8 @@
(scm-error 'read-error #f
(format #f "~A:~S:~S: ~A"
(or filename "#<unknown port>")
(port-line port) (port-column port)
(1+ (port-line port))
(1+ (port-column port))
msg)
args #f))