mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-21 12:10:26 +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:
parent
8c1a26f4d4
commit
7da831af18
1 changed files with 2 additions and 1 deletions
|
@ -126,7 +126,8 @@
|
||||||
(scm-error 'read-error #f
|
(scm-error 'read-error #f
|
||||||
(format #f "~A:~S:~S: ~A"
|
(format #f "~A:~S:~S: ~A"
|
||||||
(or filename "#<unknown port>")
|
(or filename "#<unknown port>")
|
||||||
(port-line port) (port-column port)
|
(1+ (port-line port))
|
||||||
|
(1+ (port-column port))
|
||||||
msg)
|
msg)
|
||||||
args #f))
|
args #f))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue