fix: print error traceback in api/v2
This commit is contained in:
parent
79893f0248
commit
fc86f9737b
1 changed files with 1 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ def report_error(status_code):
|
|||
case ApiVersion.V2:
|
||||
error_log = {"type": exc_type.__name__}
|
||||
if allow_traceback:
|
||||
frappe.errprint(traceback)
|
||||
error_log["exception"] = traceback
|
||||
_link_error_with_message_log(error_log, exc_value, frappe.message_log)
|
||||
frappe.local.response.errors = [error_log]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue