Skip to content

Commit

Permalink
Avoid double "Error: Error:" logging
Browse files Browse the repository at this point in the history
  • Loading branch information
1000hz committed Aug 29, 2023
1 parent f74c325 commit 5517edb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Expand Down

0 comments on commit 5517edb

Please sign in to comment.