Skip to content

Commit 6c883c3

Browse files
authored
Merge pull request #76 from goetzk/patch-2
Expand error message when user does not exist
2 parents 6688f9e + f392c97 commit 6c883c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangosaml2/backends.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def _get_saml2_user(self, main_attribute, attributes, attribute_mapping):
188188
user = User.objects.get(**user_query_args)
189189
user = self.update_user(user, attributes, attribute_mapping)
190190
except User.DoesNotExist:
191-
logger.error('The user "%s" does not exist', main_attribute)
191+
logger.error('The user "%s" does not exist, searched %s', main_attribute, django_user_main_attribute)
192192
return None
193193
except MultipleObjectsReturned:
194194
logger.error("There are more than one user with %s = %s",

0 commit comments

Comments
 (0)