diff --git a/src/connected.js b/src/connected.js index 90da33c..649b988 100644 --- a/src/connected.js +++ b/src/connected.js @@ -6,7 +6,7 @@ function tfinit(HOST, PORT) { ipcon = new Tinkerforge.IPConnection(); ipcon.connect(HOST, PORT, function (error) { - error(code); + error(error); process.exit(); } );