Skip to content

Commit

Permalink
Log error to console and core node if icon download failed (#33)
Browse files Browse the repository at this point in the history
foorschtbar authored Sep 3, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 2646315 commit 374ee7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pixelit/core.js
Original file line number Diff line number Diff line change
@@ -434,6 +434,12 @@ module.exports = (red) => {
});
webResult = res.data;
} catch (error) {
node.status({
fill: "red",
shape: "dot",
text: `Failed to download icon ${input}. Check Node-RED log.`,
});
console.log(`PixelIt Core: Failed to download icon getBitMap(${input})!`, error.message);
webResult = undefined;
}

0 comments on commit 374ee7c

Please sign in to comment.