proceed even when kind 0 image download/creation fails

This commit is contained in:
Siddharth Singh 2024-10-04 06:08:53 +05:30
parent 205b9a77fe
commit f61c13e506
No known key found for this signature in database

View file

@ -59,11 +59,15 @@ if (import.meta.main) {
.then(async (buf) => await Deno.writeFile('./public/favicon.ico', buf)) .then(async (buf) => await Deno.writeFile('./public/favicon.ico', buf))
); );
} catch (e) { } catch (e) {
die(1, `Error generating favicon from url ${image}: "${e}". Please check this or try again without --image.`); console.log(
`Error generating favicon from url ${image}: "${e}". Please check this or try again later -- proceeding silently for now.`,
);
} }
} }
console.log({ content, signed }); console.log({ content, signed });
await Storages.db().then((store) => store.event(signed)); const store = await Storages.db();
await store.event(signed);
Deno.exit(0);
}); });
await kind0.parseAsync(); await kind0.parseAsync();