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

[pkg/stanza] csv_parser: Add additional information to the error log message for mismatching field numbers #13427

Closed
Dylan-M opened this issue Aug 18, 2022 · 0 comments · Fixed by #13432

Comments

@Dylan-M
Copy link

Dylan-M commented Aug 18, 2022

When debugging code, the error message simply states: wrong number of fields.

The desired additional information consists of the following:

  • Expected number fields
  • Actual number of fields encountered
  • Line number in the file being read

The alternative we used today was to manually count the number of fields by piping the log lines through wc one at a time, or on Windows using the word count feature of Notepad++

Screen Shot 2022-08-18 at 4 57 54 PM

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

Successfully merging a pull request may close this issue.

1 participant