Skip to content

Commit

Permalink
fix: correct error message (#23746) (#23748)
Browse files Browse the repository at this point in the history
[skip ci]

(cherry picked from commit 7edb80b)

Co-authored-by: Ankush Menat <ankush@frappe.io>
  • Loading branch information
mergify[bot] and ankush committed Dec 12, 2023
1 parent 5fb8302 commit 4c7124c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/custom/doctype/custom_field/custom_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def rename_fieldname(custom_field: str, fieldname: str):
if field.is_system_generated:
frappe.throw(_("System Generated Fields can not be renamed"))
if frappe.db.has_column(parent_doctype, fieldname):
frappe.throw(_("Can not rename as fieldname {0} is already present on DocType."))
frappe.throw(_("Can not rename as column {0} is already present on DocType.").format(fieldname))
if old_fieldname == new_fieldname:
frappe.msgprint(_("Old and new fieldnames are same."), alert=True)
return
Expand Down

0 comments on commit 4c7124c

Please sign in to comment.