From 03b40f24878e4ceef19c9a8a7539f59061f31c84 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 14 Sep 2017 11:58:25 +0200 Subject: err.text -> err --- client/src/app/videos/video-watch/video-report.component.ts | 2 +- client/src/app/videos/video-watch/video-watch.component.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'client/src/app/videos/video-watch') diff --git a/client/src/app/videos/video-watch/video-report.component.ts b/client/src/app/videos/video-watch/video-report.component.ts index 61213cd68..a5758060d 100644 --- a/client/src/app/videos/video-watch/video-report.component.ts +++ b/client/src/app/videos/video-watch/video-report.component.ts @@ -63,7 +63,7 @@ export class VideoReportComponent extends FormReactive implements OnInit { this.hide() }, - err => this.notificationsService.error('Error', err.text) + err => this.notificationsService.error('Error', err) ) } } diff --git a/client/src/app/videos/video-watch/video-watch.component.ts b/client/src/app/videos/video-watch/video-watch.component.ts index 255757692..9cedc9c76 100644 --- a/client/src/app/videos/video-watch/video-watch.component.ts +++ b/client/src/app/videos/video-watch/video-watch.component.ts @@ -158,7 +158,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { this.userRating = 'like' }, - err => this.notificationsService.error('Error', err.text) + err => this.notificationsService.error('Error', err) ) } @@ -175,7 +175,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { this.userRating = 'dislike' }, - err => this.notificationsService.error('Error', err.text) + err => this.notificationsService.error('Error', err) ) } @@ -275,7 +275,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { } }, - err => this.notificationsService.error('Error', err.text) + err => this.notificationsService.error('Error', err) ) } -- cgit v1.2.3