Skip to content

Commit

Permalink
Print failures to stderr
Browse files Browse the repository at this point in the history
Failure example:
    aerospace list-windows --unknow-flag
  • Loading branch information
nikitabobko committed May 27, 2024
1 parent d9ea79e commit 86c8ba8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/Cli/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ if !isVersion {
print(help)
exit(0)
case .failure(let e):
print(e)
exit(1)
prettyError(e)
}
}

Expand Down

0 comments on commit 86c8ba8

Please sign in to comment.