fix: Show command and error message when an exception is raised
This commit is contained in:
parent
774022aed6
commit
703edfed73
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue