Skip to content

Commit ec33896

Browse files
authored
Fix error handling (#668)
Do not silently proceed further on receiving an error response. Signed-off-by: rustyclock <[email protected]>
1 parent b61a71f commit ec33896

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

github/config.go

+4
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ func (c *Config) ConfigureOwner(owner *Owner) (*Owner, error) {
115115
owner.id = remoteOrg.GetID()
116116
owner.IsOrganization = true
117117
}
118+
} else {
119+
return nil, err
118120
}
119121
}
120122

@@ -210,6 +212,8 @@ func (c *Config) Clients() (interface{}, error) {
210212
owner.id = remoteOrg.GetID()
211213
owner.IsOrganization = true
212214
}
215+
} else {
216+
return nil, err
213217
}
214218
}
215219
return &owner, nil

0 commit comments

Comments
 (0)