Skip to content

exit codes are wrong #8

@teleshoes

Description

@teleshoes

1 is returned on success and on the two most common errors. 0 is returned on all other errors.

perhaps you should revert 3545319, going back to 'return 1' for success, and 'return 0' for error.
then simply do this:

my $smtp_success = run_smtp;
my $exit_code = $smtp_success ? 0 : 125;
exit $exit_code;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions