Skip to content

Commit

Permalink
Fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
flecno committed Nov 12, 2020
1 parent 02452aa commit 5407304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func main() {
log.Fatal().Msg("Error there is no node in the cluster")
}

gcloud.GetProjectDetailsFromNode(*nodes.Items[0].Spec.ProviderID)
err = gcloud.GetProjectDetailsFromNode(*nodes.Items[0].Spec.ProviderID)

if err != nil {
log.Fatal().Err(err).Msg("Error getting project details from node; are you running this in GKE?")
Expand Down

0 comments on commit 5407304

Please sign in to comment.