mirror of
https://github.com/nadimkobeissi/mkbsd.git
synced 2025-04-12 01:40:35 -04:00
Compare commits
2 commits
63e83e0cf6
...
39e35c9ec4
Author | SHA1 | Date | |
---|---|---|---|
|
39e35c9ec4 | ||
|
ac2fedf265 |
1 changed files with 3 additions and 3 deletions
6
mkbsd.js
6
mkbsd.js
|
@ -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) {
|
||||
exitWithError(`⛔ 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 })
|
||||
})
|
||||
})
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue