fix: Show command and error message when an exception is raised

This commit is contained in:
ChillarAnand 2021-08-09 11:02:40 +05:30
parent 774022aed6
commit 703edfed73

View file

@ -53,7 +53,7 @@ def execute_cmd(cmd, from_async=False):
try:
method = get_attr(cmd)
except Exception as e:
frappe.throw(_('Invalid Method'))
frappe.throw(_('Failed to get method for command {0} with {1}').format(cmd, e))
if from_async:
method = method.queue