Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Re-adding some error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
izaaklauer committed Jun 4, 2021
1 parent 2bdb354 commit a5f9cf4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/cli/deployment_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,15 @@ func (c *DeploymentListCommand) Run(args []string) int {
Application: app.Ref(),
Workspace: wsRef,
})

if status.Code(err) == codes.NotFound || status.Code(err) == codes.Unimplemented {
err = nil
statusReportsResp = nil
}
if err != nil {
app.UI.Output(clierrors.Humanize(err), terminal.WithErrorStyle())
return ErrSentinel
}

if c.flagJson {
return c.displayJson(resp.Deployments)
Expand Down

0 comments on commit a5f9cf4

Please sign in to comment.