diff --git a/lib/microsoft_graph/application_authenticator.rb b/lib/microsoft_graph/application_authenticator.rb index f096e177b..78e2dc557 100644 --- a/lib/microsoft_graph/application_authenticator.rb +++ b/lib/microsoft_graph/application_authenticator.rb @@ -31,7 +31,7 @@ def get_access_token @access_token else - raise AuthenticationFailureError, json["error"] + raise AuthenticationFailureError, [json["error"], json["error_description"]].compact.join(": ") end end