-
Notifications
You must be signed in to change notification settings - Fork 49
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
ArrayIndexOutOfBoundsException while reading fetch.txt #92
Labels
Comments
I just tested it with a file that contains a newline and it worked correctly. Are you sure there isn't some whitespace (like a space or a tab) on that line? Also what system are you running on? |
johnscancella
added a commit
that referenced
this issue
Jun 27, 2017
This will be in release 5.0.1 |
Looks great! Added one comment to your commit. Thanks for the quick response. |
johnscancella
added a commit
that referenced
this issue
Jun 27, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We've started to switch from v4 to v5 and so far it has been a great joy! I especially like the extended error messages for errors in the input regarding (for example
bagit.txt
andbag-info.txt
). These error messages really help to see what went wrong while reading a bag. However, I'm missing this feature forfetch.txt
.Here's the situation: one of our test-bags has an extra newline at the end of the
fetch.txt
file. Because of this, theFetchReader
fails at line 55, since the array that was filled in the previous line does not contain any items. It would be great if you could catch the exception in this part of the reader and return a similarly nice looking error message as referred to above.The text was updated successfully, but these errors were encountered: