Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display row numbers with errors #285

Open
ppurang opened this issue Apr 15, 2020 · 0 comments
Open

Display row numbers with errors #285

ppurang opened this issue Apr 15, 2020 · 0 comments

Comments

@ppurang
Copy link

ppurang commented Apr 15, 2020

Recently, while consuming a csv file and using readLabelled ran into .. Failed to decode XYZ: Received Field $field. This error report is partially helpful, as given a long enough CSV file this amounts to the proverbial - looking for a needle in a hay stack. It would be great if we could get something like (just a suggestion):

Row 256*. Failed to decode XYZ: Received Field $field

where 256* is the row at which the error was encountered - with or without the header column (?)

But this feature might not be that convenient for performance reasons (multi gigabyte files, lot of rows etc.) so it might need to be an opt-in feature.

So,

  1. Can this be solved easily by client code right now? Without the need for library support.
  2. If this were to be supported by the library how would that be?

Aside: Does the parser emit line numbers if something errors out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant