mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Log failed image decoding
This commit is contained in:
@ -158,7 +158,8 @@ async function tryReadImage(imgPath, crop) {
|
||||
return image;
|
||||
}
|
||||
// If it's an unsupported type of image (APNG) - just read the file as buffer
|
||||
catch {
|
||||
catch (error) {
|
||||
console.log(`Failed to read image: ${imgPath}`, error);
|
||||
return fs.readFileSync(imgPath);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user