mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27: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]);
|
||||
const onError = React.useCallback((error) => {
|
||||
console.error(error);
|
||||
console.error('Player', error);
|
||||
if (error.critical) {
|
||||
setError(error);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ const Video = React.forwardRef(({ className, ...props }, ref) => {
|
|||
try {
|
||||
videoRef.current.dispatch(action);
|
||||
} 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 {
|
||||
transportEvents.emit(name, args);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
console.error('Core', error);
|
||||
}
|
||||
}).then(() => {
|
||||
transport = new CoreTransport(transportEvents);
|
||||
|
|
@ -25,7 +25,7 @@ initialize_api(require('@stremio/stremio-core-web/stremio_core_web_bg.wasm'))
|
|||
apiEvents.emit('initialized');
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
console.error('Core', error);
|
||||
apiInitialized = false;
|
||||
apiEvents.emit('initialized');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue