From 6554919f1e2b2108ddeae55a2c698f10c8ab253d Mon Sep 17 00:00:00 2001 From: Anand Baburajan Date: Mon, 23 Jan 2023 15:00:04 +0530 Subject: [PATCH] fix: improve invalid naming series message (#19711) * fix: show the invalid naming series in special chars error msg * chore: translations [skip ci] --- frappe/model/naming.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/model/naming.py b/frappe/model/naming.py index 93be2204b4..29831451b0 100644 --- a/frappe/model/naming.py +++ b/frappe/model/naming.py @@ -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, )