Add cause argument to the custom errors #296

This commit is contained in:
zafar-hussain 2022-11-08 14:05:05 +05:00
parent 9b2f23cac6
commit b0fcfce24a
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;