Skip to content

Commit

Permalink
perf: Parse only first line in exc for msg
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Mar 22, 2024
1 parent 18a1d1e commit 22676b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def handle_query_execution_error(e):
frappe.throw(
"Syntax error in the query. Please check the browser console for more details."
)
frappe.throw(str(e).splitlines()[0])
frappe.throw(str(e).split("\n", 1)[0])


def cache_results(sql, data_source, results):
Expand Down

0 comments on commit 22676b0

Please sign in to comment.