mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 11:42:05 +00:00
tags added to error logs
This commit is contained in:
parent
5adce4f50a
commit
ab89ed7b21
3 changed files with 4 additions and 4 deletions
|
|
@ -99,7 +99,7 @@ const Player = ({ urlParams, queryParams }) => {
|
||||||
}
|
}
|
||||||
}, [player]);
|
}, [player]);
|
||||||
const onError = React.useCallback((error) => {
|
const onError = React.useCallback((error) => {
|
||||||
console.error(error);
|
console.error('Player', error);
|
||||||
if (error.critical) {
|
if (error.critical) {
|
||||||
setError(error);
|
setError(error);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ const Video = React.forwardRef(({ className, ...props }, ref) => {
|
||||||
try {
|
try {
|
||||||
videoRef.current.dispatch(action);
|
videoRef.current.dispatch(action);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('StremioVideo', error);
|
console.error('Video', error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ initialize_api(require('@stremio/stremio-core-web/stremio_core_web_bg.wasm'))
|
||||||
try {
|
try {
|
||||||
transportEvents.emit(name, args);
|
transportEvents.emit(name, args);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error('Core', error);
|
||||||
}
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
transport = new CoreTransport(transportEvents);
|
transport = new CoreTransport(transportEvents);
|
||||||
|
|
@ -25,7 +25,7 @@ initialize_api(require('@stremio/stremio-core-web/stremio_core_web_bg.wasm'))
|
||||||
apiEvents.emit('initialized');
|
apiEvents.emit('initialized');
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error('Core', error);
|
||||||
apiInitialized = false;
|
apiInitialized = false;
|
||||||
apiEvents.emit('initialized');
|
apiEvents.emit('initialized');
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue