From b65f5367baf799b425be0bcfb9220922751bb6eb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 29 Dec 2022 14:18:07 +0100 Subject: Add ability to customize token lifetime --- shared/server-commands/requests/requests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shared') diff --git a/shared/server-commands/requests/requests.ts b/shared/server-commands/requests/requests.ts index dc9cf4e01..cb0e1a5fb 100644 --- a/shared/server-commands/requests/requests.ts +++ b/shared/server-commands/requests/requests.ts @@ -199,7 +199,7 @@ function buildRequest (req: request.Test, options: CommonRequestParams) { return req.expect((res) => { if (options.expectedStatus && res.status !== options.expectedStatus) { throw new Error(`Expected status ${options.expectedStatus}, got ${res.status}. ` + - `\nThe server responded this error: "${res.body?.error ?? res.text}".\n` + + `\nThe server responded: "${res.body?.error ?? res.text}".\n` + 'You may take a closer look at the logs. To see how to do so, check out this page: ' + 'https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/development/tests.md#debug-server-logs') } -- cgit v1.2.3