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 wranglerCommands();
await execCommands(getMultilineInput("postCommands"), "post"); await execCommands(getMultilineInput("postCommands"), "post");
info("🏁 Wrangler Action completed", true); info("🏁 Wrangler Action completed", true);
} catch (err) { } catch (err: unknown) {
error(`${err}`); err instanceof Error && error(err.message);
setFailed("🚨 Action failed"); setFailed("🚨 Action failed");
} }
} }