From bdd01e4a6cd93401bd584fd22a1fde70d7fd8214 Mon Sep 17 00:00:00 2001 From: James Meng <35415298+jamesmengo@users.noreply.github.com> Date: Thu, 16 Jan 2025 11:08:20 -0800 Subject: [PATCH] Remove dash from error message Co-authored-by: Gray Gilmore --- packages/theme/src/cli/utilities/theme-uploader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/theme/src/cli/utilities/theme-uploader.ts b/packages/theme/src/cli/utilities/theme-uploader.ts index a259f17dda..b73868982a 100644 --- a/packages/theme/src/cli/utilities/theme-uploader.ts +++ b/packages/theme/src/cli/utilities/theme-uploader.ts @@ -432,7 +432,7 @@ async function handleFailedUploads( function reportFailedUploads(uploadResults: Map) { for (const [key, result] of uploadResults.entries()) { if (!result.success) { - const errorMessage = result.errors?.asset?.map((err) => `-${err}`).join('\n') ?? 'File upload failed' + const errorMessage = result.errors?.asset?.map((err) => `${err}`).join('\n') ?? 'File upload failed' renderThrownError(key, new Error(errorMessage)) } }