]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/admin/friends/friend-list/friend-list.component.ts
Client: fix error alert
[github/Chocobozzz/PeerTube.git] / client / src / app / admin / friends / friend-list / friend-list.component.ts
index afbb48c1c348f0b8234f16f042ed7eb10b9f35ff..88c4800ee74be25da096aee52e5f780c19fbef21 100644 (file)
@@ -24,7 +24,7 @@ export class FriendListComponent implements OnInit {
         alert('Quit friends!');
         this.getFriends();
       },
-      error => alert(error)
+      error => alert(error.text)
     );
   }
 
@@ -32,7 +32,7 @@ export class FriendListComponent implements OnInit {
     this.friendService.getFriends().subscribe(
       friends => this.friends = friends,
 
-      err => alert(err)
+      err => alert(err.text)
     );
   }
 }