diff options
Diffstat (limited to 'client/src/app/core')
-rw-r--r-- | client/src/app/core/auth/auth.service.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client/src/app/core/auth/auth.service.ts b/client/src/app/core/auth/auth.service.ts index f5ca2fcdc..d31c61496 100644 --- a/client/src/app/core/auth/auth.service.ts +++ b/client/src/app/core/auth/auth.service.ts | |||
@@ -66,8 +66,12 @@ export class AuthService { | |||
66 | }, | 66 | }, |
67 | 67 | ||
68 | error => { | 68 | error => { |
69 | let errorMessage = `Cannot retrieve OAuth Client credentials: ${error.text}. \n` | 69 | let errorMessage = error.message |
70 | errorMessage += 'Ensure you have correctly configured PeerTube (config/ directory), in particular the "webserver" section.' | 70 | |
71 | if (error.status === 403) { | ||
72 | errorMessage = `Cannot retrieve OAuth Client credentials: ${error.text}. \n` | ||
73 | errorMessage += 'Ensure you have correctly configured PeerTube (config/ directory), in particular the "webserver" section.' | ||
74 | } | ||
71 | 75 | ||
72 | // We put a bigger timeout | 76 | // We put a bigger timeout |
73 | // This is an important message | 77 | // This is an important message |