mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Tweaks to hardware nodes to throw not laoded exceptions correctly.
This commit is contained in:
@@ -20,8 +20,7 @@ var fs = require('fs');
|
||||
|
||||
// check if /dev/ledborg exists - if not then don't even show the node.
|
||||
if (!fs.existsSync("/dev/ledborg")) {
|
||||
//util.log("[78-ledborg.js] Warning: PiBorg hardware : LedBorg not found");
|
||||
return;
|
||||
throw "Info : PiBorg hardware : LedBorg not found";
|
||||
}
|
||||
|
||||
function LedBorgNode(n) {
|
||||
|
Reference in New Issue
Block a user