mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +01:00
Add additional details on icon error.
This commit is contained in:
parent
99c4b5d0ec
commit
591c9470e7
@ -93,7 +93,7 @@ class ImageIcon extends Icon {
|
||||
|
||||
static _getFamilyIcons(iconId) {
|
||||
$assert(iconId != null, 'id must not be null');
|
||||
$assert(iconId.indexOf('_') !== -1, "Invalid icon id (it must contain '_')");
|
||||
$assert(iconId.indexOf('_') !== -1, `Invalid icon id (it must contain '_'). Id: ${iconId}`);
|
||||
|
||||
let result = null;
|
||||
for (let i = 0; i < ImageIcon.prototype.ICON_FAMILIES.length; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user