]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Client: add some explanations if we cannot retrieve client oauth
authorChocobozzz <florian.bigard@gmail.com>
Sat, 1 Oct 2016 10:19:48 +0000 (12:19 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Sat, 1 Oct 2016 10:19:48 +0000 (12:19 +0200)
credentials

client/src/app/shared/auth/auth.service.ts

index e12da0b340ed9fb5331eb849184e1c7387772944..c57486d9ae3e048d9f72eaeaf91e760c9b97ceb6 100644 (file)
@@ -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.'
+          );
         }
       );