fix: incorrect error msg

This commit is contained in:
Rehan Ansari
2025-10-25 10:09:31 +05:30
parent 41293130ad
commit 0c1f1fada4

View File

@@ -17,7 +17,7 @@ class LMSProgram(Document):
duplicates = {course for course in courses if courses.count(course) > 1}
if len(duplicates):
frappe.throw(
_("Course {0} has already been added to this batch.").format(
_("Course {0} has already been added to this program.").format(
frappe.bold(next(iter(duplicates)))
)
)
@@ -27,7 +27,7 @@ class LMSProgram(Document):
duplicates = {member for member in members if members.count(member) > 1}
if len(duplicates):
frappe.throw(
_("Member {0} has already been added to this batch.").format(
_("Member {0} has already been added to this program.").format(
frappe.bold(next(iter(duplicates)))
)
)