Update wording for user not found to indicate the auth method isn't primary for the scope

This commit is contained in:
Jeff Mitchell committed 2021-04-14 13:27:03 -04:00
1 parent dc881e65d4
commit c57841fa2e
1 file changed
+1 -1
+1 -1
View File
@@ -244,7 +244,7 @@ func (r *Repository) LookupUserWithLogin(ctx context.Context, accountId string,
return nil, errors.Wrap(err, op)
}
if !allowed {
return nil, errors.New(errors.RecordNotFound, op, fmt.Sprintf("user not found for account %s", accountId))
return nil, errors.New(errors.RecordNotFound, op, fmt.Sprintf("user not found for account %s and auth method is not primary for the scope so refusing to auto-create user", accountId))
}
metadata := oplog.Metadata{