Merge pull request #13885 from ChillarAnand/handler

fix: Show command and error message when an exception is raised
This commit is contained in:
mergify[bot] 2021-08-09 10:28:13 +00:00 committed by GitHub
commit 7915e20cba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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