From f27a885a4368776ffb8158c917c6e3f3d21ef670 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 27 Dec 2019 13:10:50 +0100 Subject: Better error message in videos list --- client/src/app/shared/video/abstract-video-list.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'client/src') diff --git a/client/src/app/shared/video/abstract-video-list.ts b/client/src/app/shared/video/abstract-video-list.ts index faeea27d9..a2a12bec7 100644 --- a/client/src/app/shared/video/abstract-video-list.ts +++ b/client/src/app/shared/video/abstract-video-list.ts @@ -159,7 +159,12 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy, DisableFor this.onDataSubject.next(data) }, - error => this.notifier.error(error.message) + error => { + const message = this.i18n('Cannot load more videos. Try again later.') + + console.error(message, { error }) + this.notifier.error(message) + } ) } -- cgit v1.2.3