Skip to content

Crash on reading invalid library files #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

Closed
DSiekmeier opened this issue Sep 13, 2023 · 0 comments · Fixed by #50
Closed

Crash on reading invalid library files #49

DSiekmeier opened this issue Sep 13, 2023 · 0 comments · Fixed by #50
Assignees
Labels
bug Something isn't working

Comments

@DSiekmeier
Copy link
Owner

Describe the bug
When manually editing the library file and changing the JSON scheme the program fails reading and crashes.

To Reproduce
Steps to reproduce the behavior:

  1. Manually edit the library file by removing the "reading" entry for example
  2. load the library file by using the list subcommand for example
  3. booktrack-cli crashes

Expected behavior
To be defined:

  1. ignore missing entries with optionally give a warning
  2. Cancel the reading when the JSON scheme does not fit (see also Use JSON Schema files #9)

Version information:

  • OS: Debian 11 "Bullseye"
  • program version: v0.4.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant