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

Attempting to convert a non-existing file, results in misleading "No codec could be found" error message #811

Open
de-code opened this issue Jan 27, 2021 · 0 comments

Comments

@de-code
Copy link

de-code commented Jan 27, 2021

When attempting to convert a non-existing document, e.g. running the following command:

./encoda convert this-file-does-not-exist.docx output.pdf

# or:
node dist/cli.js convert this-file-does-not-exist.docx output.pdf

It is showing:

⚠ WARN  encoda No codec could be found for source "this-file-does-not-exist.docx". Falling back to plain text codec.
🚨 ERROR encoda dom.setAttribute is not a function

It should instead show a message that the file doesn't exist.

That became an issue due to using ~ as a placeholder for the home directory (that isn't expanded by the above command, but is by using stencila, see #803 (comment)).

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