Skip to content

status! should not return CmdStatusErr when exit code != 0 #348

@Anton-4

Description

@Anton-4

I wanted to check if the exit code was 2 but I could not easily do this because I got a (CmdStatusErr (Other "Non-zero exit code: 2")) instead of Ok(2). The signature of status! is Cmd => Result I32 [CmdStatusErr InternalIOErr.IOErr] while in truth I32 can only be 0, this all together does not really make sense.

Perhaps another function with a different name should be added here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions