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

Tweak mpd missing message so it's only a warning not an error.

This commit is contained in:
Dave C-J 2014-02-05 18:37:19 +00:00
parent 2f07bb7d13
commit b1f9a3ce5e

View File

@ -28,7 +28,7 @@ exec("which mpd",function(err,stdout,stderr) {
exec("netstat -an | grep LISTEN | grep 6600",function(err,stdout,stderr) { exec("netstat -an | grep LISTEN | grep 6600",function(err,stdout,stderr) {
if (stdout.indexOf('6600') == -1) { if (stdout.indexOf('6600') == -1) {
util.log('[69-mpd.js] Error: MPD daemon not listening on port 6600. Please start MPD.'); util.log('[69-mpd.js] Warning: MPD daemon not listening on port 6600. Please start MPD.');
return; return;
} }
komponist.createConnection(6600, 'localhost', function(err, client) { komponist.createConnection(6600, 'localhost', function(err, client) {