Skip to content

Commit

Permalink
small adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Angelo committed Aug 31, 2021
1 parent e799b54 commit 28589cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rest/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (s *ApplicationsService) Update(a *pulsar.Application) (*http.Response, err
if err != nil {
switch err.(type) {
case *Error:
if err.(*Error).Message == "pulsar app not found" {
if err.(*Error).Resp.StatusCode == 404 {
return resp, ErrApplicationMissing
}
}
Expand All @@ -108,7 +108,7 @@ func (s *ApplicationsService) Delete(id string) (*http.Response, error) {
if err != nil {
switch err.(type) {
case *Error:
if err.(*Error).Message == "pulsar app not found" {
if err.(*Error).Resp.StatusCode == 404 {
return resp, ErrApplicationMissing
}
}
Expand Down

0 comments on commit 28589cd

Please sign in to comment.