mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-25 15:09:27 -06:00
improve error log for "could not get user by claim" error
This commit is contained in:
7
changelog/unreleased/enhancement-error-by-claim.md
Normal file
7
changelog/unreleased/enhancement-error-by-claim.md
Normal file
@@ -0,0 +1,7 @@
|
||||
Enhancement: Improve error log for "could not get user by claim" error
|
||||
|
||||
We've improved the error log for "could not get user by claim" error where
|
||||
previously only the "nil" error has been logged. Now we're logging the
|
||||
message from the transport.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/4227
|
||||
@@ -65,7 +65,7 @@ func (c *cs3backend) GetUserByClaims(ctx context.Context, claim, value string, w
|
||||
if res.Status.Code == rpcv1beta1.Code_CODE_NOT_FOUND {
|
||||
return nil, "", ErrAccountNotFound
|
||||
}
|
||||
return nil, "", fmt.Errorf("could not get user by claim %v with value %v : %w ", claim, value, err)
|
||||
return nil, "", fmt.Errorf("could not get user by claim %v with value %v : %s ", claim, value, res.Status.Message)
|
||||
}
|
||||
|
||||
user := res.User
|
||||
|
||||
Reference in New Issue
Block a user