mirror of
https://github.com/nadimkobeissi/mkbsd.git
synced 2024-12-22 02:35:34 +00:00
small fix
This commit is contained in:
parent
5ca589bd54
commit
ac2fedf265
6
mkbsd.js
6
mkbsd.js
|
@ -70,7 +70,7 @@ const fetchAssetData = async () => {
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
catch (error) {
|
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
|
return downloadDirectory
|
||||||
}
|
}
|
||||||
catch (error) {
|
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}`)
|
printSuccess(`Downloaded image: ${url}`)
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.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…
Reference in a new issue