mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-05 16:15:43 +00:00
7 lines
215 B
JavaScript
7 lines
215 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.setUrl("https://github.com");
|
|
ctx.task.continue();
|
|
});
|