mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-06 08:30:29 +00:00
8 lines
223 B
JavaScript
8 lines
223 B
JavaScript
gopeed.events.onError(async function (ctx) {
|
|
gopeed.logger.info("url", ctx.task.meta.req.url);
|
|
gopeed.logger.info("error", ctx.error);
|
|
ctx.task.meta.req.url = "https://github.com";
|
|
ctx.task.continue();
|
|
});
|
|
|