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

Make Rawserial node fail more quietly

This commit is contained in:
Dave C-J 2014-12-12 23:15:42 +00:00
parent c128184d6a
commit 5cd7a73baf

View File

@ -23,7 +23,8 @@ module.exports = function(RED) {
var pre = "\\\\.\\"; var pre = "\\\\.\\";
if (!plat.match(/^win/)) { 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 = ""; pre = "";
} }