From 5cd7a73baff9b08743dd5ade3b771bbbf7440e3c Mon Sep 17 00:00:00 2001 From: Dave C-J Date: Fri, 12 Dec 2014 23:15:42 +0000 Subject: [PATCH] Make Rawserial node fail more quietly --- io/rawserial/26-rawserial.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/io/rawserial/26-rawserial.js b/io/rawserial/26-rawserial.js index 0ba158f1..c0913296 100644 --- a/io/rawserial/26-rawserial.js +++ b/io/rawserial/26-rawserial.js @@ -23,7 +23,8 @@ module.exports = function(RED) { var pre = "\\\\.\\"; if (!plat.match(/^win/)) { - util.log("[26-rawserial.js] Info : only really needed for Windows boxes without serialport npm module installed."); + throw "Info : only really needed for Windows boxes without serialport npm module installed."; + //util.log("[26-rawserial.js] Info : only really needed for Windows boxes without serialport npm module installed."); pre = ""; }