Skip to content

Return value after command-line script crashes is EXIT_SUCCESS rather than EXIT_FAILURE #654

@juliangilbey

Description

@juliangilbey

With QuPath-0.2.3, I ran a broken script like this:

QuPath-0.2.3 script -i /path/to/image.tif brokenscript

where brokenscript gave a Java exception. Unfortunately, QuPath then exited with status 0 (EXIT_SUCCESS), meaning that my calling script cannot easily test whether the script worked or not.

It would be great if QuPath exited with an error status if the script exits with an error.

Best wishes, Julian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions