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

(cherry picked from commit 86c8ba8)
  • Loading branch information
nikitabobko committed Jun 8, 2024
1 parent f719579 commit 5559f96
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 5559f96

Please sign in to comment.