Skip to content

Commit

Permalink
change function name
Browse files Browse the repository at this point in the history
  • Loading branch information
axiomofjoy committed Aug 21, 2024
1 parent e015dce commit 8128f1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/phoenix/server/api/mutations/user_mutations.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def create_user(
)
assert user is not None
except IntegrityError as error:
raise ValueError(_get_user_create_message(error))
raise ValueError(_get_user_create_error_message(error))
return UserMutationPayload(
user=User(
id_attr=user.id,
Expand All @@ -75,7 +75,7 @@ async def create_user(
)


def _get_user_create_message(error: IntegrityError) -> str:
def _get_user_create_error_message(error: IntegrityError) -> str:
"""
Gets a user-facing error message to explain why user creation failed.
"""
Expand Down

0 comments on commit 8128f1a

Please sign in to comment.