Currently, when there is an error, ERPNext shows that error in a popup window. This error shows the absolute path [1]. Is there a way to show to the user only the relative path?
For example, instead of showing: “/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/doctype/email_digest/email_digest.py”,
it should be show: “apps/erpnext/erpnext/setup/doctype/email_digest/email_digest.py”
Thanks
[1]
{'retry': 0, 'log': <function log at 0x7fa0927d5b18>, 'site': u'my.domain.com', 'event': u'daily', 'method_name': u'erpnext.setup.doctype.email_digest.email_digest.send', 'method': <function send at 0x7fa092800320>, 'user': u'TheUserName', 'kwargs': {}, 'async': True, 'job_name': u'erpnext.setup.doctype.email_digest.email_digest.send'}
Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 66, in execute_job
method(**kwargs)
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/doctype/email_digest/email_digest.py", line 535, in send
ed_obj.send()
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/doctype/email_digest/email_digest.py", line 65, in send
unsubscribe_message = _("Unsubscribe from this Email Digest"))
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 432, in sendmail
inline_images=inline_images, header=header)
File "/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py", line 67, in send
email_account = get_outgoing_email_account(True, append_to=reference_doctype)
File "/home/frappe/frappe-bench/apps/frappe/frappe/email/smtp.py", line 58, in get_outgoing_email_account
frappe.OutgoingEmailError)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 319, in throw
msgprint(msg, raise_exception=exc, title=title, indicator='red')
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 309, in msgprint
_raise_exception()
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 282, in _raise_exception
raise raise_exception(encode(msg))
Thanks in advanced