Improved error logging.
This commit is contained in:
@@ -51,7 +51,7 @@ export default async function GenerateThumbnail(
|
||||
}
|
||||
return path.relative(path.dirname(file), thumbPath);
|
||||
} catch (err) {
|
||||
console.error("Error when genenerating thumbnail:", thumbPath);
|
||||
logger.error("Error when genenerating thumbnail:", thumbPath, err);
|
||||
return path.relative(path.dirname(file), thumbPath);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user