]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
err.text -> err
authorChocobozzz <florian.bigard@gmail.com>
Thu, 14 Sep 2017 09:58:25 +0000 (11:58 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Thu, 14 Sep 2017 09:58:25 +0000 (11:58 +0200)
client/src/app/+admin/friends/friend-add/friend-add.component.ts
client/src/app/+admin/request-schedulers/request-schedulers-stats/request-schedulers-stats.component.ts
client/src/app/+admin/users/user-edit/user-add.component.ts
client/src/app/+admin/users/user-edit/user-update.component.ts
client/src/app/signup/signup.component.ts
client/src/app/videos/video-watch/video-report.component.ts
client/src/app/videos/video-watch/video-watch.component.ts

index 02543d393a027be33ff9f2a48db1322bcc1c413b..e0b73dfa3c6d4bd485d53648c22289e5ae8e16ac 100644 (file)
@@ -98,7 +98,7 @@ export class FriendAddComponent implements OnInit {
             setTimeout(() => this.router.navigate([ '/admin/friends/list' ]), 1000)
           },
 
-          err => this.notificationsService.error('Error', err.text)
+          err => this.notificationsService.error('Error', err)
         )
       }
     )
index 4e3fabc645808232cc51febe668e2bc9dfabbe91..1edeb31febf135126fe5db9c4dcf779c89144c8b 100644 (file)
@@ -57,7 +57,7 @@ export class RequestSchedulersStatsComponent implements OnInit, OnDestroy {
     this.requestService.getStats().subscribe(
       stats => this.stats = stats,
 
-      err => this.notificationsService.error('Error', err.text)
+      err => this.notificationsService.error('Error', err)
     )
   }
 
index 40f649cff6ef2367163c2732c567e2c817b090e1..5dc069104d6b1c102569113308561cd13c97886b 100644 (file)
@@ -73,7 +73,7 @@ export class UserAddComponent extends UserEdit implements OnInit {
         this.router.navigate([ '/admin/users/list' ])
       },
 
-      err => this.error = err.text
+      err => this.error = err
     )
   }
 
index dbac5f974dd0e5120210c77a2b120383dc64b181..0966981c06ce7deb766e3762fa890c4a5ceb0817 100644 (file)
@@ -59,7 +59,7 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy {
       this.userService.getUser(userId).subscribe(
         user => this.onUserFetched(user),
 
-        err => this.error = err.text
+        err => this.error = err
       )
     })
   }
@@ -82,7 +82,7 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy {
         this.router.navigate([ '/admin/users/list' ])
       },
 
-      err => this.error = err.text
+      err => this.error = err
     )
   }
 
index 981fe3c3bf5190eaa606f8e0a682bbfd54653887..65a2d44e398663cae5b3b4e091b6df6c2f7051a5 100644 (file)
@@ -67,7 +67,7 @@ export class SignupComponent extends FormReactive implements OnInit {
         this.router.navigate([ '/videos/list' ])
       },
 
-      err => this.error = err.text
+      err => this.error = err
     )
   }
 }
index 61213cd684dab17ab40123c1619f513741e636ec..a5758060d7fd482fec62f900255c6ea3d2f0063e 100644 (file)
@@ -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)
                            )
   }
 }
index 25575769214e9ce4b2c0b0dd52dda2097b8a6946..9cedc9c761b448a855a509a62d455c3f6f8d0857 100644 (file)
@@ -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)
                       )
   }