Skip to content

Commit

Permalink
Fix error handling (integrations#668)
Browse files Browse the repository at this point in the history
Do not silently proceed further on receiving an error response.

Signed-off-by: rustyclock <[email protected]>
  • Loading branch information
rustycl0ck authored Jan 22, 2021
1 parent 79bfe9a commit 247edbd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions github/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ func (c *Config) ConfigureOwner(owner *Owner) (*Owner, error) {
owner.id = remoteOrg.GetID()
owner.IsOrganization = true
}
} else {
return nil, err
}
}

Expand Down Expand Up @@ -210,6 +212,8 @@ func (c *Config) Clients() (interface{}, error) {
owner.id = remoteOrg.GetID()
owner.IsOrganization = true
}
} else {
return nil, err
}
}
return &owner, nil
Expand Down

0 comments on commit 247edbd

Please sign in to comment.