homebridge-xbox-tv 3.0.2-beta.1 → 3.0.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Xbox TV",
3
3
  "name": "homebridge-xbox-tv",
4
- "version": "3.0.2-beta.1",
4
+ "version": "3.0.2-beta.2",
5
5
  "description": "Homebridge plugin to control Xbox game consoles.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -193,10 +193,10 @@ class Authentication extends EventEmitter{
193
193
  this.emit('error', 'No oauth token found. Use authorization manager first.')
194
194
  }
195
195
  } catch (error) {
196
- this.emit('error', error);
196
+ throw new Error(error);
197
197
  };
198
198
  } else {
199
- throw new Error(`Authorization not possible, check plugin settings - Client Id: ${this.webApiClientId}`);
199
+ this.emit('error', `Authorization not possible, check plugin settings - Client Id: ${this.webApiClientId}`);
200
200
  }
201
201
  }
202
202