Skip to content

Commit 3c60f2c

Browse files
committed
logs
1 parent f45e4c4 commit 3c60f2c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/workers/child.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ defmodule Mudan.Workers.User do
1010

1111
case starred(profile.github_token, repo_id) do
1212
false -> start(profile.github_token, profile.uid, repo_id)
13+
401 -> {:error, :bad_credentials}
1314
_ -> {:cancel, :already_starred}
1415
end
1516
end
@@ -90,6 +91,7 @@ defmodule Mudan.Workers.User do
9091
case Req.get(url, headers: headers) do
9192
{:ok, %Req.Response{status: 204}} -> true
9293
{:ok, %Req.Response{status: 404}} -> false
94+
{:ok, %Req.Response{status: 401}} -> 401
9395
end
9496
end
9597
end

0 commit comments

Comments
 (0)