Better error message for duplicate desktop icon (#3446)
* Better error message for duplicate desktop icon * remove trailing whitespace
This commit is contained in:
parent
4203ebdfc7
commit
bf11a1a3fd
1 changed files with 2 additions and 0 deletions
|
|
@ -145,6 +145,8 @@ def add_user_icon(_doctype, _report=None, label=None, link=None, type='link', st
|
|||
|
||||
icon_name = new_icon.name
|
||||
|
||||
except frappe.UniqueValidationError as e:
|
||||
frappe.throw(_('Desktop Icon already exists'))
|
||||
except Exception as e:
|
||||
raise e
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue