Clojure

Add "starting at <line>" to EOF while reading exceptions

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.3
  • Component/s: None
  • Labels:
    None
  • Approval:
    Ok

Description

Extend some EOF exceptions during read so they look like this:

java.lang.Exception: EOF while reading, starting at line 7 (bad.clj:15)

So while bad.clj:15 indicates the file name and the fact that
line 15 is the last one of the file, "starting at line 7" points
out the line where the unclosed grouping construct started.

Discussed: http://groups.google.com/group/clojure/browse_thread/thread/872c5b2ee7af19fe

Activity

Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - Converted from http://www.assembla.com/spaces/clojure/tickets/249 Attachments: 0001-Add-starting-at-line-to-readDelimitedList-EOF-er.patch - https://www.assembla.com/spaces/clojure/documents/cw16NCc3qr34N6eJe5afGb/download/cw16NCc3qr34N6eJe5afGb
Hide
Assembla Importer added a comment -

chouser@n01se.net said: (In [[r:a5c2c36cd7f8ddbae68a5071ae7a3d9373b02a01]]) Add "starting at <line>" to readDelimitedList EOF errors

Refs #249
Signed-off-by: Chouser <chouser@n01se.net>

Branch: master

Show
Assembla Importer added a comment - chouser@n01se.net said: (In [[r:a5c2c36cd7f8ddbae68a5071ae7a3d9373b02a01]]) Add "starting at <line>" to readDelimitedList EOF errors Refs #249 Signed-off-by: Chouser <chouser@n01se.net> Branch: master

People

  • Assignee:
    Chouser
    Reporter:
    Anonymous
Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: