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

Bad error 'No such file or directory' when convert fails to run #122

Open
carolyncole opened this issue Dec 21, 2016 · 0 comments
Open

Bad error 'No such file or directory' when convert fails to run #122

carolyncole opened this issue Dec 21, 2016 · 0 comments

Comments

@carolyncole
Copy link
Contributor

carolyncole commented Dec 21, 2016

When processing office categorized documents and the conversion to pdf fails you get a strange error message No Such file or directory instead of some indication that the pdf conversion failed.

This also shows as bad URI(is not URI?) when the original filename contains a space or other non URI character.

Here is where the conversion happens that is returning no output:
https://github.com/projecthydra/hydra-derivatives/blob/master/lib/hydra/derivatives/processors/document.rb#L38

It would be better to capture the error and or verify the file exists before passing on to the ImageProcessor: https://github.com/projecthydra/hydra-derivatives/blob/master/lib/hydra/derivatives/processors/document.rb#L24

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

1 participant