Merge pull request #320 from zafar-hussain/zh-branch

Add cause argument to the custom errors #296
This commit is contained in:
Nikola Hristov 2022-11-26 13:59:08 +02:00 committed by GitHub
commit 78a2898367
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;