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

REST server should catch exceptions from WASM #73

Open
ccxvii opened this issue Apr 23, 2024 · 0 comments · May be fixed by #77
Open

REST server should catch exceptions from WASM #73

ccxvii opened this issue Apr 23, 2024 · 0 comments · May be fixed by #77
Assignees

Comments

@ccxvii
Copy link
Collaborator

ccxvii commented Apr 23, 2024

Each API call should really be wrapped in a try/catch to return a user friendly HTTP status code and error message if there's an exception in the mupdf library.

For example opening a file that is corrupt, or not a PDF file, or loading a page that is out of range, etc.

@mipo1357 mipo1357 linked a pull request Apr 26, 2024 that will close this issue
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.

2 participants