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

fix: improve error message in case of file not found #26

Open
zonca opened this issue Jan 9, 2024 · 1 comment
Open

fix: improve error message in case of file not found #26

zonca opened this issue Jan 9, 2024 · 1 comment

Comments

@zonca
Copy link
Contributor

zonca commented Jan 9, 2024

Currently if a file is missing, the error message is a C++ I/O exception:

In [6]: import awkward_kaitai

In [7]:     reader = awkward_kaitai.Reader("test_artifacts/libpixie4e.so")

In [8]:     awkward_array = reader.load("example_data/data/pixie4e.raw")
   ...: 
terminate called after throwing an instance of 'std::__ios_failure'
  what():  basic_ios::clear: iostream error
Aborted

Not urgent, but we could catch this in Python and give a better error message.

@ManasviGoyal
Copy link
Collaborator

ManasviGoyal commented Jan 10, 2024

@zonca Yes, that would be great. Thanks!

@ManasviGoyal ManasviGoyal changed the title Improve error message in case of file not found fix: improve error message in case of file not found Jan 15, 2024
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

2 participants