forked from AkkomaGang/akkoma
HttpRequestMock: Log mock errors as warnings
This commit is contained in:
parent
90986667ce
commit
18668447d2
1 changed files with 8 additions and 3 deletions
|
@ -17,9 +17,14 @@ def request(
|
|||
with {:ok, res} <- apply(__MODULE__, method, [url, query, body, headers]) do
|
||||
res
|
||||
else
|
||||
{_, _r} = error ->
|
||||
# Logger.warn(r)
|
||||
error
|
||||
error ->
|
||||
error = error
|
||||
|
||||
with {:error, message} <- error do
|
||||
Logger.warn(message)
|
||||
end
|
||||
|
||||
{_, _r} = error
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue