1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Handle error objects when reporting in palette manager

This commit is contained in:
Nick O'Leary 2020-04-24 13:41:55 +01:00
parent 9f6bac1b1b
commit 3dfbefb9f5
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -220,7 +220,11 @@ RED.palette.editor = (function() {
var setElements = nodeEntry.sets[setName]; var setElements = nodeEntry.sets[setName];
if (set.err) { if (set.err) {
errorCount++; errorCount++;
$("<li>").text(set.err).appendTo(nodeEntry.errorList); var errMessage = set.err;
if (set.err.message) {
errMessage = set.err.message;
}
$("<li>").text(errMessage).appendTo(nodeEntry.errorList);
} }
if (set.enabled) { if (set.enabled) {
activeTypeCount += set.types.length; activeTypeCount += set.types.length;