fix: unhelpful error message (#19666)
This commit is contained in:
parent
65a76cc0f3
commit
0e6e2609b5
1 changed files with 4 additions and 1 deletions
|
|
@ -62,7 +62,10 @@ def get_decrypted_password(doctype, name, fieldname="password", raise_exception=
|
|||
return decrypt(result[0][0])
|
||||
|
||||
elif raise_exception:
|
||||
frappe.throw(_("Password not found"), frappe.AuthenticationError)
|
||||
frappe.throw(
|
||||
_("Password not found for {0} {1} {2}").format(doctype, name, fieldname),
|
||||
frappe.AuthenticationError,
|
||||
)
|
||||
|
||||
|
||||
def set_encrypted_password(doctype, name, pwd, fieldname="password"):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue