Inkscape always exits with 0 exit code
Steps to reproduce:
If inkscape task fails it should exit with non-zero exit code. It's especially important when one uses inkscape in command line mode. Parsing stderr is not an easy nor reliable way to detect errors.
It would be nice to have different exit codes for different types of errors, but even generic exit code 1
would be a big improvement.
An example of failing task:
inkscape --without-gui non-existent-file.svg --export-file=output.png
What happened?
Inkscape exits with 0 exit code.
Errors are printed in stderr:
ink_file_open: '/home/sergei/non-existent-file.svg' cannot be opened!
InkscapeApplication::open_document: Failed to open: /home/sergei/non-existent-file.svg
What should have happened?
Inkscape should exit with non-zero exit code
Inkscape Version and Operating System:
- Inkscape Version: 1.0alpha (1d84e39c, 2019-05-26)
- Operating System: Ubuntu
- Operating System version: 18.04