From 22e05d15db0a50ee466de212142bc7a133e4d5e7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 30 Oct 2023 09:55:06 +0100 Subject: [PATCH] Fix video error handling --- .../app/shared/shared-main/custom-page/custom-page.service.ts | 2 +- client/src/app/shared/shared-main/video/video.service.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/app/shared/shared-main/custom-page/custom-page.service.ts b/client/src/app/shared/shared-main/custom-page/custom-page.service.ts index 6a2d3a1f5..b0af379d2 100644 --- a/client/src/app/shared/shared-main/custom-page/custom-page.service.ts +++ b/client/src/app/shared/shared-main/custom-page/custom-page.service.ts @@ -23,7 +23,7 @@ export class CustomPageService { return of({ content: '' }) } - this.restExtractor.handleError(err) + return this.restExtractor.handleError(err) }) ) } diff --git a/client/src/app/shared/shared-main/video/video.service.ts b/client/src/app/shared/shared-main/video/video.service.ts index 9b2bc5dee..7d7bd3643 100644 --- a/client/src/app/shared/shared-main/video/video.service.ts +++ b/client/src/app/shared/shared-main/video/video.service.ts @@ -395,7 +395,7 @@ export class VideoService { return of([]) } - this.restExtractor.handleError(err) + return this.restExtractor.handleError(err) }) ) } @@ -411,7 +411,7 @@ export class VideoService { return of(undefined) } - this.restExtractor.handleError(err) + return this.restExtractor.handleError(err) }) ) }