Compare commits

..

2 commits

Author SHA1 Message Date
optionallychained 39e35c9ec4
Merge ac2fedf265 into 82e50c64f0 2024-09-28 12:09:18 +01:00
optionallychained ac2fedf265 small fix 2024-09-28 12:08:52 +01:00

View file

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