Skip to content

Commit

Permalink
fix: improved validation message
Browse files Browse the repository at this point in the history
(cherry picked from commit fe43dab)
  • Loading branch information
nabinhait authored and mergify[bot] committed Jan 8, 2024
1 parent 06d193a commit 580e9f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/assets/doctype/asset_category/asset_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ def validate_account_types(self):
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"),
)
Expand Down

0 comments on commit 580e9f6

Please sign in to comment.