Skip to content

Commit

Permalink
Remove unnecessary map
Browse files Browse the repository at this point in the history
Co-authored-by: Fran Dios <fran.dios@shopify.com>
  • Loading branch information
jamesmengo and frandiox committed Jan 16, 2025
1 parent 58d3ee8 commit 0971b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/theme/src/cli/utilities/theme-uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ async function handleFailedUploads(
function reportFailedUploads(uploadResults: Map<string, Result>) {
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?.join('\n') ?? 'File upload failed'
renderThrownError(key, new Error(errorMessage))
}
}
Expand Down

0 comments on commit 0971b54

Please sign in to comment.