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