Skip to content

Commit

Permalink
add more clarity to server_message func 2
Browse files Browse the repository at this point in the history
  • Loading branch information
philkra committed Jan 3, 2024
1 parent 611d03c commit 49ae177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xata/api_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def server_message(self) -> Union[str, None]:
"""
Get the server message from the response, if you need the error message
please the property error_message. This channel is only relevant for
deprecation messages or other meta information from Xata
deprecation messages or other meta information from Xata.
:returns str | None
"""
return self.headers["x-xata-message"] if "x-xata-message" in self.headers else None
Expand Down

0 comments on commit 49ae177

Please sign in to comment.