Commit ac81b00
committed
refactor(main): use GimError exit codes instead of implicit panics
main() now calls gim::run(args) which returns Result, and maps
errors to stderr output with the correct exit code from GimError.
No more process::exit() calls buried in library code.1 parent 7f77cae commit ac81b00
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
0 commit comments