From b92719544ec44ae706693731f2c9785e8fbaf8e3 Mon Sep 17 00:00:00 2001 From: Adishwar Rishi Date: Fri, 5 Jan 2024 18:08:54 +1100 Subject: [PATCH] Remove extra debug description for err.stack --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 7a72c46..576e3fd 100755 --- a/src/index.ts +++ b/src/index.ts @@ -208,7 +208,7 @@ async function uploadSecrets() { } catch (err: unknown) { if (err instanceof Error) { error(err.message); - debug(`wrangler secret:bulk error stack: ${err.stack}`); + err.stack && debug(err.stack); } throw new Error(`Failed to upload secrets.`); } finally {