refactor: Explicit feedback to timestamp mismatch errror
Not necessarily a needed improvement but it adds explicitness to the feedback. fix: text order fix: type
This commit is contained in:
parent
c441be55e6
commit
e6223b04fc
1 changed files with 1 additions and 1 deletions
|
|
@ -887,7 +887,7 @@ class Document(BaseDocument):
|
|||
|
||||
if cstr(previous.modified) != cstr(self._original_modified):
|
||||
frappe.msgprint(
|
||||
_("Error: Document has been modified after you have opened it")
|
||||
_(f"Error: {self.name} ({self.doctype}) has been modified after you have opened it")
|
||||
+ (f" ({previous.modified}, {self.modified}). ")
|
||||
+ _("Please refresh to get the latest document."),
|
||||
raise_exception=frappe.TimestampMismatchError,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue