Skip to content

Commit

Permalink
don't barf on deployment error
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Mar 14, 2022
1 parent 4f9c731 commit c60143e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/handler/google.go
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,10 @@ func (e *GoogleApp) Status(ctx context.Context, req *pb.StatusRequest, rsp *pb.S
log.Error(fmt.Errorf(string(outp)))
rsp.Service = srv
return nil
} else if strings.HasPrefix(srv.Status, "DeploymentError") {
log.Error(fmt.Errorf(string(outp)))
rsp.Service = srv
return nil
} else if err != nil {
log.Error(fmt.Errorf(string(outp)))
return errors.BadRequest("app.status", "service does not exist")
Expand Down

0 comments on commit c60143e

Please sign in to comment.