Skip to content

Commit

Permalink
Refactor query error message (tableau#522)
Browse files Browse the repository at this point in the history
* Refactor query error message

* Refactor 'model' to 'function'

Co-authored-by: Chinmay Gore <[email protected]>
  • Loading branch information
cgore1 and Chinmay Gore authored Oct 11, 2021
1 parent 633b958 commit f98a818
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tabpy/tabpy_server/handlers/query_plane_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _handle_result(self, po_name, data, qry, uid):
elif response_type == QueryError:
self.error_out(400, "QueryError", info=response)
else:
self.error_out(500, "Error querying GLS", info=response)
self.error_out(500, f"Error querying function '{po_name}'", info=response)

return (None, None)

Expand Down Expand Up @@ -149,7 +149,7 @@ def _process_query(self, endpoint_name, start):
# endpoint_name) is None
if not po_name:
self.error_out(
404, "UnknownURI", info=f'Endpoint "{endpoint_name}" does not exist'
404, "UnknownURI", info=f"Endpoint '{endpoint_name}' does not exist"
)
return

Expand Down

0 comments on commit f98a818

Please sign in to comment.