From 591c9470e78db479bef14dc732bb5ce400237f61 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 21 Feb 2022 09:50:38 -0800 Subject: [PATCH] Add additional details on icon error. --- packages/mindplot/src/components/ImageIcon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mindplot/src/components/ImageIcon.js b/packages/mindplot/src/components/ImageIcon.js index a89cc4b6..dfacded4 100644 --- a/packages/mindplot/src/components/ImageIcon.js +++ b/packages/mindplot/src/components/ImageIcon.js @@ -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++) {