mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 11:42:05 +00:00
Merge pull request #320 from zafar-hussain/zh-branch
Add cause argument to the custom errors #296
This commit is contained in:
commit
78a2898367
2 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ function Chromecast() {
|
||||||
function onTransportInitError(args) {
|
function onTransportInitError(args) {
|
||||||
console.error(args);
|
console.error(args);
|
||||||
active = false;
|
active = false;
|
||||||
error = new Error('Google Cast API not available');
|
error = new Error('Google Cast API not available', { cause: args });
|
||||||
starting = false;
|
starting = false;
|
||||||
onStateChanged();
|
onStateChanged();
|
||||||
transport = null;
|
transport = null;
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ function Core(args) {
|
||||||
function onTransportError(args) {
|
function onTransportError(args) {
|
||||||
console.error(args);
|
console.error(args);
|
||||||
active = false;
|
active = false;
|
||||||
error = new Error('Stremio Core Transport initialization failed');
|
error = new Error('Stremio Core Transport initialization failed', { cause: args });
|
||||||
starting = false;
|
starting = false;
|
||||||
onStateChanged();
|
onStateChanged();
|
||||||
transport = null;
|
transport = null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue