Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
fix: update error type returned by get user
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Feb 9, 2020
1 parent 186d8d7 commit b297906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firebase/auth/findUser.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func GetUser(ctx context.Context, query string, criteria FindUserCriteria) (*aut
user, getUserErr = client.GetUser(ctx, query)
}
if getUserErr != nil {
return nil, fmt.Errorf("Error while find user: %w", getUserErr)
return nil, firebase.NewError(getUserErr)
}
return user, nil
}

0 comments on commit b297906

Please sign in to comment.