fix: Error log link when error in notification
This commit is contained in:
parent
2c2ca66cfd
commit
015937f334
1 changed files with 3 additions and 2 deletions
|
|
@ -316,8 +316,9 @@ def evaluate_alert(doc, alert, event):
|
|||
except TemplateError:
|
||||
frappe.throw(_("Error while evaluating Notification {0}. Please fix your template.").format(alert))
|
||||
except Exception as e:
|
||||
frappe.log_error(message=frappe.get_traceback(), title=str(e))
|
||||
frappe.throw(_("Error in Notification"))
|
||||
error_log = frappe.log_error(message=frappe.get_traceback(), title=str(e))
|
||||
frappe.throw(_("Error in Notification: {}".format(
|
||||
frappe.utils.get_link_to_form('Error Log', error_log.name))))
|
||||
|
||||
def get_context(doc):
|
||||
return {"doc": doc, "nowdate": nowdate, "frappe.utils": frappe.utils}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue