From 703edfed73441b80cdc735438fea685eeef9c614 Mon Sep 17 00:00:00 2001 From: ChillarAnand Date: Mon, 9 Aug 2021 11:02:40 +0530 Subject: [PATCH] fix: Show command and error message when an exception is raised --- frappe/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/handler.py b/frappe/handler.py index 8d0c18a00b..9d32b0acee 100755 --- a/frappe/handler.py +++ b/frappe/handler.py @@ -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