Install: log errors with more obvious prefix

This commit is contained in:
Lovell Fuller
2021-04-01 16:20:58 +01:00
parent 08a25a0c8f
commit fe0767df13
4 changed files with 10 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ const cachePath = function () {
const log = function (item) {
if (item instanceof Error) {
console.error(`sharp: ${item.message}`);
console.error(`sharp: Installation error: ${item.message}`);
} else {
console.log(`sharp: ${item}`);
}