From: Timo Sirainen Date: Tue, 26 May 2020 22:03:11 +0000 (+0300) Subject: auth: db-oauth2 - Improve "Internal error" message for grant lookups X-Git-Tag: 2.3.14.rc1~262 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c29ebbaf0fcb218ffd1a726b5380f6b68b506a6f;p=thirdparty%2Fdovecot%2Fcore.git auth: db-oauth2 - Improve "Internal error" message for grant lookups --- diff --git a/src/auth/db-oauth2.c b/src/auth/db-oauth2.c index 9d89deee4e..f781437038 100644 --- a/src/auth/db-oauth2.c +++ b/src/auth/db-oauth2.c @@ -754,7 +754,7 @@ db_oauth2_lookup_passwd_grant(struct oauth2_request_result *result, passdb_result = PASSDB_RESULT_PASSWORD_MISMATCH; } if (error == NULL) - error = "Internal error"; + error = "OAuth2 server returned failure without error field"; } db_oauth2_callback(req, passdb_result, error); }