# distinguish between unexpected child process exit code and unclean exit · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/da2b615efb14f662bf3aac1f9050174966acd17d)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: da2b615efb14f662bf3aac1f9050174966acd17d

Requested commit: da2b615efb14f662bf3aac1f9050174966acd17d

Commit: da2b615efb14f662bf3aac1f9050174966acd17d

Tree: 0d27e073dbc18c7e37fd0a415d98c6827cc8451c

Author: Jonathan Marler

Committer: Andrew Kelley

## Message

```
distinguish between unexpected child process exit code and unclean exit

This modifies the error for an unexpected exit code from the ChildProcess of RunStep to be UnexpectedExitCode rather than UncleanExit.  This allows the handler of the error to distinguish between an error reported by the ChildProcess, and an error executing the ChildProcess, which is an important dinstinction when it comes to know what information to report to the user.  For example, if you have a ChildProcess that you know reports its own errors, an unexpected exit code would mean the error is already reported, but an unclean exit would mean that child process was not able to report any error.

```

## Parents

- [a0e195120dd3dd7919fd249a6ce2201da9395898](https://git.cafe/gitcafe/zig/commit/a0e195120dd3dd7919fd249a6ce2201da9395898?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/da2b615efb14f662bf3aac1f9050174966acd17d?format=markdown)
