mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-24 07:58:00 +01:00
Log failed image decoding
This commit is contained in:
parent
0638953a20
commit
1ecc65f5fe
@ -158,7 +158,8 @@ async function tryReadImage(imgPath, crop) {
|
|||||||
return image;
|
return image;
|
||||||
}
|
}
|
||||||
// If it's an unsupported type of image (APNG) - just read the file as buffer
|
// 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);
|
return fs.readFileSync(imgPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user