# Executor.ignore_error

Don't throw an error on non-zero exit codes.

```rhai
executor.ignore_error() -> Executor
```

By default, commands that exit with non-zero codes throw errors. This method allows the command to complete and return the result instead.

## Example

```rhai
let result = execute("test -f /tmp/missing")
    .ignore_error()
    .run()?;
if !result.success {
    print("File does not exist");
}
```
