Skip to content

Commit 2b8e529

Browse files
author
Brujo Benavides
committed
Merge pull request #11 from inaka/jfacorro.10.handle.non.404
[Fixes #10] Handle errors that are not 404
2 parents 5288633 + 3715c8b commit 2b8e529

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/egithub.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ team_membership(Cred, TeamId, Username) ->
281281
case api_call_json_result(Cred, Url) of
282282
{ok, #{<<"state">> := <<"active">>}} -> active;
283283
{ok, #{<<"state">> := <<"pending">>}} -> pending;
284-
{error, {"404", _, _}} -> none
284+
{error, {"404", _, _}} -> none;
285+
{error, Reason} -> {error, Reason}
285286
end.
286287

287288
%% Hooks

0 commit comments

Comments
 (0)