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

Unclear error message #197

Open
feliksik opened this issue Jul 8, 2024 · 0 comments
Open

Unclear error message #197

feliksik opened this issue Jul 8, 2024 · 0 comments

Comments

@feliksik
Copy link

feliksik commented Jul 8, 2024

If I (accidentally) use an image with absolute path and it is not found, like this:

= Test Doc

image::/test.png[]

Text2confl fails with a very unclear error:

Failed to convert ./directory/my-file.adoc: Document conversion failed
  • note that this did work in my asciidoctor preview (for some reason used different config/interpretation of /)
  • If it's a relative path with unfound image, text2confl outputs 10:12:12.756 [main] WARN com.github.zeldigas.text2confl.convert.AttachmentCollector - Unresolved local ref in [./directory/my-file.adoc], ref=(inline). File does not exist: ./test.png.

It seems the ConversionFailedException is thrown here but it could also be here and should be dealt with here ; however, error message in the original exception is not printed.

I have seen this happen also with other type of (non image-related) bugs; I think the proper solution would be to make sure the error message from the encapsulated Exception chain is properly exposed.

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