diff --git a/lib/main.js b/lib/main.js index e1da101..c6e5c78 100644 --- a/lib/main.js +++ b/lib/main.js @@ -48,6 +48,17 @@ if (flags.get('version')) { clientName = 'AirSonos @ ' + name; }); + airplayServer.on('error', function(err) { + if (err.code === 415) { + console.error('Warning!', err.message); + console.error('AirSonos currently does not support codecs used by applications such as iTunes or AirFoil.'); + console.error('Progress on this issue: https://github.com/stephen/nodetunes/issues/1'); + } else { + console.error('Unknown error:'); + console.error(err); + } + }) + airplayServer.on('clientConnected', function(audioStream) { portastic.find({ diff --git a/package.json b/package.json index 24aea33..22d6092 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "lame": "1.1.1", "lodash": "~2.4.1", "nicercast": "0.0.7", - "nodetunes": "0.1.1", + "nodetunes": "0.1.2", "portastic": "0.0.1", "sonos": "0.6.1", "throttle": "~1.0.3"