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

Improve message for asciidoc input error #8416 #10492

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

foursixnine
Copy link
Contributor

I noticed that asciidoct is not supported as input format, so in this case its
better to be clear about what the failure is about.

fursixnine@pakhet cndk8 % pandoc -t markdown  ./CNDK8.adoc $OUTPUT.md
Unknown input format asciidoc

This should improve the error being presented to the user.

Comment on lines 127 to 128
"asciidoc" -> "\nPandoc can convert to asciidoc, but not from " <>
"\n asciidoc (sometimes adoc also)."
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer a simpler one liner "Pandoc can convert to asciidoc, but not from asciidoc."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jgm done

@foursixnine foursixnine force-pushed the alittlebitmoreverboseinmycli branch from d82554f to 13d5903 Compare December 23, 2024 20:17
@foursixnine foursixnine force-pushed the alittlebitmoreverboseinmycli branch from 13d5903 to 20b2492 Compare December 23, 2024 20:19
@jgm jgm merged commit af2b276 into jgm:main Dec 23, 2024
9 of 12 checks passed
@jgm
Copy link
Owner

jgm commented Dec 23, 2024

thanks!

@foursixnine foursixnine deleted the alittlebitmoreverboseinmycli branch December 23, 2024 20:45
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 this pull request may close these issues.

2 participants