Tweaks to hardware nodes to throw not laoded exceptions correctly.

This commit is contained in:
Dave C-J
2014-04-08 15:54:08 +01:00
parent 36bbddffe5
commit 5a9cfb3425
3 changed files with 19 additions and 30 deletions

View File

@@ -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) {