Avoid double "Error: Error:" logging

This commit is contained in:
Cina Saffary 2023-08-29 18:00:03 -05:00
parent f74c325efc
commit 5517edbb28

View file

@ -88,8 +88,8 @@ async function main() {
await wranglerCommands();
await execCommands(getMultilineInput("postCommands"), "post");
info("🏁 Wrangler Action completed", true);
} catch (err) {
error(`${err}`);
} catch (err: unknown) {
err instanceof Error && error(err.message);
setFailed("🚨 Action failed");
}
}