fix: improve invalid naming series message (#19711)

* fix: show the invalid naming series in special chars error msg

* chore: translations

[skip ci]
This commit is contained in:
Anand Baburajan 2023-01-23 15:00:04 +05:30 committed by GitHub
parent 0e6e2609b5
commit 6554919f1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,8 +59,8 @@ class NamingSeries:
if not NAMING_SERIES_PATTERN.match(self.series):
frappe.throw(
_(
'Special Characters except "-", "#", ".", "/", "{" and "}" not allowed in naming series',
),
"Special Characters except '-', '#', '.', '/', '{{' and '}}' not allowed in naming series {0}"
).format(frappe.bold(self.series)),
exc=InvalidNamingSeriesError,
)