From 5517edbb28efeaa083381256dea5e6498800d95b Mon Sep 17 00:00:00 2001 From: Cina Saffary Date: Tue, 29 Aug 2023 18:00:03 -0500 Subject: [PATCH] Avoid double "Error: Error:" logging --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index ad7c1bb..3e18064 100755 --- a/src/index.ts +++ b/src/index.ts @@ -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"); } }