diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-27 13:10:50 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-27 13:10:50 +0100 |
commit | f27a885a4368776ffb8158c917c6e3f3d21ef670 (patch) | |
tree | ef11739b4dceae2248eb061b4fbf07b304331aaa /client/src | |
parent | f2aa2c3cca2433d89ba80b1c2b64ea6c4b95fe66 (diff) | |
download | PeerTube-f27a885a4368776ffb8158c917c6e3f3d21ef670.tar.gz PeerTube-f27a885a4368776ffb8158c917c6e3f3d21ef670.tar.zst PeerTube-f27a885a4368776ffb8158c917c6e3f3d21ef670.zip |
Better error message in videos list
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/shared/video/abstract-video-list.ts | 7 |
1 files changed, 6 insertions, 1 deletions
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 | |||
159 | this.onDataSubject.next(data) | 159 | this.onDataSubject.next(data) |
160 | }, | 160 | }, |
161 | 161 | ||
162 | error => this.notifier.error(error.message) | 162 | error => { |
163 | const message = this.i18n('Cannot load more videos. Try again later.') | ||
164 | |||
165 | console.error(message, { error }) | ||
166 | this.notifier.error(message) | ||
167 | } | ||
163 | ) | 168 | ) |
164 | } | 169 | } |
165 | 170 | ||