You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
If I (accidentally) use an image with absolute path and it is not found, like this:
Text2confl fails with a very unclear error:
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.
The text was updated successfully, but these errors were encountered: