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

Better error message when trying to use output-only format for input #8416

Closed
lassik opened this issue Nov 3, 2022 · 1 comment
Closed
Labels
CLI Command Line Interface enhancement

Comments

@lassik
Copy link

lassik commented Nov 3, 2022

Describe your proposed improvement and the problem it solves.

$ pandoc hello.adoc -t hello.html
Unknown input format asciidoc

Pandoc can write asciidoc, but cannot read it. It's confusing that the error message says the asciidoc format is "unknown" to pandoc. Could the message be altered to say "asciidoc is supported only as an output format, not for input" or something similar?

Describe alternatives you've considered.

Leave the error message as is.

@tarleb tarleb added the CLI Command Line Interface label Dec 16, 2022
foursixnine added a commit to foursixnine/pandoc that referenced this issue Dec 23, 2024
@foursixnine
Copy link
Contributor

I just created: #10492 to improve the error message

foursixnine added a commit to foursixnine/pandoc that referenced this issue Dec 23, 2024
foursixnine added a commit to foursixnine/pandoc that referenced this issue Dec 23, 2024
@jgm jgm closed this as completed in af2b276 Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI Command Line Interface enhancement
Projects
None yet
Development

No branches or pull requests

3 participants