From 015937f334589136771ec54b341babcdf7b83b65 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Mon, 11 Mar 2019 05:31:23 +0000 Subject: [PATCH] fix: Error log link when error in notification --- frappe/email/doctype/notification/notification.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frappe/email/doctype/notification/notification.py b/frappe/email/doctype/notification/notification.py index ba211bdf23..79000b447d 100644 --- a/frappe/email/doctype/notification/notification.py +++ b/frappe/email/doctype/notification/notification.py @@ -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}