mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 15:25:07 +01:00
Install: log errors with more obvious prefix
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user