fix: improved validation message

(cherry picked from commit fe43dab4d78091e626ddfb6432b2d69f84793d92)
This commit is contained in:
Nabin Hait 2024-01-05 17:12:08 +05:30 committed by Mergify
parent 83288fedf1
commit e89dce726b

View File

@ -86,12 +86,12 @@ class AssetCategory(Document):
if selected_key_type not in expected_key_types:
frappe.throw(
_(
"Row #{}: {} of {} should be {}. Please modify the account or select a different account."
"Row #{0}: {1} of {2} should be {3}. Please update the {1} or select a different account."
).format(
d.idx,
frappe.unscrub(key_to_match),
frappe.bold(selected_account),
frappe.bold(expected_key_types),
frappe.bold(" or ".join(expected_key_types)),
),
title=_("Invalid Account"),
)