Skip to content

Commit

Permalink
Merge pull request #320 from zafar-hussain/zh-branch
Browse files Browse the repository at this point in the history
Add cause argument to the custom errors #296
  • Loading branch information
nklhtv authored Nov 26, 2022
2 parents 497588a + b0fcfce commit 78a2898
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/Chromecast/Chromecast.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/services/Core/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 78a2898

Please sign in to comment.