tags added to error logs

This commit is contained in:
nklhrstv 2021-01-07 11:53:14 +02:00
parent 5adce4f50a
commit ab89ed7b21
3 changed files with 4 additions and 4 deletions

View file

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

View file

@ -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);
}
}
}, []);

View file

@ -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');
});