Compare commits

..

2 commits

Author SHA1 Message Date
optionallychained 63e83e0cf6
Merge 9c271450bf into 82e50c64f0 2024-09-26 17:31:20 +02:00
optionallychained 9c271450bf small fix 2024-09-26 16:30:06 +01:00

View file

@ -70,7 +70,7 @@ const fetchAssetData = async () => {
return data
}
catch (error) {
printError(`Error downloading asset data from Panels API: ${error}`)
error(`Error downloading asset data from Panels API: ${error}`)
}
}
@ -88,7 +88,7 @@ const initializeDownloadDirectory = () => {
return downloadDirectory
}
catch (error) {
printError(`Error initializing download directory '${downloadDirectory}': ${error}`)
error(`Error initializing download directory '${downloadDirectory}': ${error}`)
}
}
@ -112,7 +112,7 @@ const downloadImages = (data, downloadDirectory) =>
printSuccess(`Downloaded image: ${url}`)
})
.catch((error) => {
printError(`Failed to download image '${url}' with error: ${error}`, { exit: false })
error(`Failed to download image '${url}' with error: ${error}`, { exit: false })
})
})
)