Skip to content

Commit

Permalink
Merge pull request #524 from Scalingo/fix/one-stop-shop/34/error_app_…
Browse files Browse the repository at this point in the history
…not_found

Improve error message when querying unknown app
  • Loading branch information
john-scalingo committed Feb 26, 2020
2 parents a850a2c + 81e77db commit 59d1b5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,9 @@

### To be Released

* Improve error message if unknown app, suggests to try on a different region
[#524](https://github.com/Scalingo/cli/pull/524)

### 1.16.6

* Bugfix: integration-link-create: command will always fail if there's already a link [#520](https://github.com/Scalingo/cli/issues/520)
Expand Down
2 changes: 2 additions & 0 deletions cmd/error.go
Expand Up @@ -84,6 +84,8 @@ func errorQuit(err error) {
region := strings.Split(apiURL.Host, ".")[1]
io.Errorf("The application was not found on the region %s.\n", region)
io.Error("You can try on a different region with 'scalingo --region osc-fr1 ...'.")
io.Error("")
io.Error("List of available regions for your account is accessible with 'scalingo regions'.")
} else {
io.Error("An error occured:")
debug.Println(errgo.Details(err))
Expand Down

0 comments on commit 59d1b5a

Please sign in to comment.