Skip to content

Commit

Permalink
Add suggestion to 'project not ready' error message (#1169)
Browse files Browse the repository at this point in the history
* Add suggestion to 'project not ready' error msg

---------

Co-authored-by: jonaro00 <54029719+jonaro00@users.noreply.github.com>
  • Loading branch information
beyarkay and jonaro00 authored Aug 22, 2023
1 parent 07e2566 commit 2c86a52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion common/src/models/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ impl From<ErrorKind> for ApiError {
StatusCode::NOT_FOUND,
"project not found. Run `cargo shuttle project start` to create a new project.",
),
ErrorKind::ProjectNotReady => (StatusCode::SERVICE_UNAVAILABLE, "project not ready"),
ErrorKind::ProjectNotReady => (
StatusCode::SERVICE_UNAVAILABLE,
"project not ready. Try running `cargo shuttle project restart`.",
),
ErrorKind::ProjectUnavailable => {
(StatusCode::BAD_GATEWAY, "project returned invalid response")
}
Expand Down

0 comments on commit 2c86a52

Please sign in to comment.