diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-05-22 10:53:38 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-06-06 22:20:17 -0400 |
| commit | 6627e8a9b848473740a8e9b9864520701226179c (patch) | |
| tree | 7972ff9aed2460e2bbf91fa8ebc8e8500a530b92 /packages/backend/src/core/HttpRequestService.ts | |
| parent | normalize use of .info (INFO) instead of .succ (DONE) logging (diff) | |
| download | sharkey-6627e8a9b848473740a8e9b9864520701226179c.tar.gz sharkey-6627e8a9b848473740a8e9b9864520701226179c.tar.bz2 sharkey-6627e8a9b848473740a8e9b9864520701226179c.zip | |
add more details to StatusErrors
Diffstat (limited to 'packages/backend/src/core/HttpRequestService.ts')
| -rw-r--r-- | packages/backend/src/core/HttpRequestService.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/core/HttpRequestService.ts b/packages/backend/src/core/HttpRequestService.ts index a0f2607ddc..151097095d 100644 --- a/packages/backend/src/core/HttpRequestService.ts +++ b/packages/backend/src/core/HttpRequestService.ts @@ -331,7 +331,7 @@ export class HttpRequestService { }); if (!res.ok && extra.throwErrorWhenResponseNotOk) { - throw new StatusError(`${res.status} ${res.statusText}`, res.status, res.statusText); + throw new StatusError(`request error from ${url}`, res.status, res.statusText); } if (res.ok) { |