Adalennis opened a new issue, #9383: URL: https://github.com/apache/hop/issues/9383
### Apache Hop version? 2.20.0 ### Java version? Java 21 ### Operating system macOS ### What happened? Reproduced on 2.20.0; the code involved is unchanged on main. When the format asked for has no exporter, `hop export` doesn't fail. It writes the file with the requested name and extension, but with a Mermaid diagram inside, and ends with exit code 0. A standard installation only has SVG and Mermaid exporters, so this happens for `pdf`, which the command itself suggests, and for any typo. Steps, with the samples project: ``` ./hop export -f transforms/abort-basic.hpl --format pdf; echo $? ./hop export -f transforms/abort-basic.hpl -o /tmp/x.pdf; echo $? ./hop export -f transforms/abort-basic.hpl --format foo -o /tmp/y.foo; echo $? ``` All three print `0` and log `Exported ...`. `abort-basic.pdf`, `/tmp/x.pdf` and `/tmp/y.foo` are text files that start with `flowchart LR`. Expected: an error that names the format and lists the available ones (as `--list-exporters` does), and a non-zero exit code. ### Issue Priority Priority: 3 ### Issue Component Component: Other -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
