Unexpected behaviour when bad input is provided to myst build
CLI command
#1152
Labels
bug
Something isn't working
myst build
CLI command
#1152
Description
Using version
v1.1.55
:In the above screenshot I ran
myst build --pdf index.pdf
in a folder whereindex.pdf
does not exist, nor is there an export defined that should createindex.pdf
. It printed a somewhat-unexpected error message "unrecognized extension" - I would expect it to either (1) interpretindex.pdf
as the input file and say "unrecognized file" or (2) interpretindex.pdf
as the output and be happy with .pdf (though (2) should be the case, output should only be under-o
).Further, after that error message, it still claims to perform
index.pdf -> _build/exports/index.pdf
which then actually doesindex.md -> _build/exports/index.pdf
Proposed solution
I think this is just an error in the logic of collecting exports provided by the CLI, rather than export frontmatter.
The text was updated successfully, but these errors were encountered: