mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-30 09:02:28 +00:00
HttpRequestMock: Log mock errors as warnings
This commit is contained in:
parent
90986667ce
commit
18668447d2
|
@ -17,9 +17,14 @@ defmodule HttpRequestMock do
|
|||
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