Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions crates/tower-cmd/src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ fn output_response_content_error<T>(err: ResponseContent<T>) {

match err.status {
StatusCode::CONFLICT => {
error("There was a conflict while trying to do that!");
output_full_error_details(&error_model);
}
StatusCode::UNPROCESSABLE_ENTITY => {
Expand All @@ -316,7 +315,10 @@ fn output_response_content_error<T>(err: ResponseContent<T>) {
);
}
_ => {
error("The Tower API returned an error that the Tower CLI doesn't know what to do with! Maybe try again in a bit.");
if error_model.detail.is_none() && error_model.errors.is_none() {
error("The Tower API returned an error that the Tower CLI doesn't know what to do with! Maybe try again in a bit.");
}
output_full_error_details(&error_model);
}
}
}
Expand Down