mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-23 10:33:24 +01:00
Avoid double "Error: Error:" logging
This commit is contained in:
parent
f74c325efc
commit
5517edbb28
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue