X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fadmin%2Ffriends%2Ffriend-list%2Ffriend-list.component.ts;h=88c4800ee74be25da096aee52e5f780c19fbef21;hb=da4971c11f16b541804b5071d543166cd3954a98;hp=afbb48c1c348f0b8234f16f042ed7eb10b9f35ff;hpb=00d6b0dda4b1964ab11127851c0fc7106cc0f912;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/admin/friends/friend-list/friend-list.component.ts b/client/src/app/admin/friends/friend-list/friend-list.component.ts index afbb48c1c..88c4800ee 100644 --- a/client/src/app/admin/friends/friend-list/friend-list.component.ts +++ b/client/src/app/admin/friends/friend-list/friend-list.component.ts @@ -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) ); } }