From d86099204c0784d1461936e89589a693f6b768a7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sat, 1 Oct 2016 12:19:48 +0200 Subject: [PATCH] Client: add some explanations if we cannot retrieve client oauth credentials --- client/src/app/shared/auth/auth.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/app/shared/auth/auth.service.ts b/client/src/app/shared/auth/auth.service.ts index e12da0b34..c57486d9a 100644 --- a/client/src/app/shared/auth/auth.service.ts +++ b/client/src/app/shared/auth/auth.service.ts @@ -41,7 +41,10 @@ export class AuthService { console.log('Client credentials loaded.'); }, error => { - alert(error); + alert( + `Cannot retrieve OAuth Client credentials: ${error.text}. \n` + + 'Ensure you have correctly configured PeerTube (config/ directory), in particular the "webserver" section.' + ); } );