From ae9d96d57e62b91d431a43cf28f7882d47db3af1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Birm=C3=A9?= Date: Mon, 2 Dec 2024 15:34:42 +0100 Subject: [PATCH] fix: crash on error --- src/packager.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/packager.ts b/src/packager.ts index 1f5d494..d591b6d 100644 --- a/src/packager.ts +++ b/src/packager.ts @@ -183,7 +183,7 @@ export async function uploadPackage( ['cp', '--recursive', stagingDir, dest.toString()], s3EndpointUrl ); - const { status, stderr, error } = spawnSync('aws', args, { + const { status, error } = spawnSync('aws', args, { stdio: 'ignore' }); if (status !== 0) { @@ -191,7 +191,6 @@ export async function uploadPackage( console.error(`Upload failed: ${error.message}`); } else { console.error(`Upload failed with exit code ${status}`); - console.error(stderr.toString()); } throw new Error('Upload failed'); }