diff --git a/CHANGELOG.md b/CHANGELOG.md index 85c8954..e967338 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ -# Unreleased +# 1.9.10 + +## Enhancement + +- Catch all `%{reason: reason}` error responses during authentication, not only from `Finch` + +# 1.9.9 ## Change diff --git a/lib/graph_conn/graph_rest_calls.ex b/lib/graph_conn/graph_rest_calls.ex index a4d6b8b..bc92676 100644 --- a/lib/graph_conn/graph_rest_calls.ex +++ b/lib/graph_conn/graph_rest_calls.ex @@ -140,7 +140,7 @@ defmodule GraphConn.GraphRestCalls do Logger.error("Authentication error: #{inspect(error)}") {:error, error} - %Finch.Error{reason: reason} -> + %{reason: reason} -> Logger.error("Authentication error: #{inspect(reason)}") {:error, reason} end