From fba2c2c261447d085ab50b1c0b47f22d5c8b0c04 Mon Sep 17 00:00:00 2001 From: Burmaja Milan Date: Wed, 27 May 2026 10:29:30 +0100 Subject: [PATCH] Catch all %{reason: reason} while authenticating --- CHANGELOG.md | 8 +++++++- lib/graph_conn/graph_rest_calls.ex | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) 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