Skip to content
Snippets Groups Projects
Commit 79212bbd authored by tamaina's avatar tamaina
Browse files

refactor(server): notify url when fetch error

parent d4563086
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ export class UndiciFetcher {
...(options.headers ?? {}),
},
}).catch((err) => {
this.logger?.error('fetch error', err);
this.logger?.error(`fetch error to ${typeof url === 'string' ? url : url.href}`, err);
throw new StatusError('Resource Unreachable', 500, 'Resource Unreachable');
});
if (!res.ok && !privateOptions.noOkError) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment