Skip to content

Replace OCR expect() with Result-based init#8

Merged
adinschmidt merged 1 commit into
masterfrom
fix/issue-5-no-panics
Jan 16, 2026
Merged

Replace OCR expect() with Result-based init#8
adinschmidt merged 1 commit into
masterfrom
fix/issue-5-no-panics

Conversation

@adinschmidt

Copy link
Copy Markdown
Owner

Summary

  • Replace expect(...) calls in src/ocr.rs global OCR engine init with fallible Result-based initialization.
  • Prevents panics on corrupted/missing embedded model bytes; failures now surface as normal CLI errors.

Links

Replace expect-based LazyLock init with fallible Result to surface model load/engine init failures as regular CLI errors.
@adinschmidt
adinschmidt merged commit 69ee1c2 into master Jan 16, 2026
5 checks passed
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 this pull request may close these issues.

Replace expect/unwrap in OCR and DB paths with Result-based errors

1 participant