diff --git a/cli/zp.js b/cli/zp.js index 8eaa811..a9e5b3d 100755 --- a/cli/zp.js +++ b/cli/zp.js @@ -796,16 +796,11 @@ class Main extends homebridgeLib.CommandLineTool { id: zonePlayer.id, timeout: this._clargs.options.timeout }) - zpClient.on('error', (error, id, method, resource, body, url) => { - this.log('request %d: %s %s', id, method, resource) - this.error('request %d: error %s', id, error) - }) jobs.push(zpClient.init() .then(() => { result[id] = zpClient.info - }).catch((error) => { + }).catch(() => { delete result[id] - this.error('%s: %s', zonePlayer.address, error) }) ) }