Skip to content

Dump *.data-file contents into exception message #31

@dneise

Description

@dneise

Due to recent problems we had with the current version in shifthelper, I would like to have the parser dump the entire text of the page it was trying to parse into the exception message.

I will try to make a propose how to implement this.

Of course this will blow up the exceptions quite a lot, but I think it is worth it. A parser that clearly says what it is unhappy about is pretty nice.

I once had a broken json-lines-file ... pandas.read_json just threw an exception .. pythons json reader thing, told me which line the problem was in .. and indeed the file was corrupt ... I was able to remove a single line and the other 12 million lines were fine. 👍

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions