mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 14:40:23 +08:00
fix(core): make sure timeout error messages include URLs (#7981)
Before this fix, timeout messages are not quite useful > error: Request undefined fail, retry attempt #1: TimeoutError: Timeout awaiting 'request' for 5000ms
This commit is contained in:
@@ -7,7 +7,7 @@ const custom = got.extend({
|
||||
hooks: {
|
||||
beforeRetry: [
|
||||
(options, err, count) => {
|
||||
logger.error(`Request ${err.url} fail, retry attempt #${count}: ${err}`);
|
||||
logger.error(`Request ${options.url} fail, retry attempt #${count}: ${err}`);
|
||||
},
|
||||
],
|
||||
afterResponse: [
|
||||
|
||||
Reference in New Issue
Block a user