Fix error log
| @@ -82,7 +82,8 @@ async function writeCharacterData(inputFile, data, outputFile, request, crop = u | ||
| 82 | 82 | |
| 83 | 83 | return await tryReadImage(inputFile, crop); |
| 84 | 84 | } catch (error) { |
| 85 | 85 | consoleconst message = Buffer.logisBuffer(`inputFile) ? 'Failed to read image: ${inputFile}buffer.' Using: a`Failed fallbackto read image: ${inputFile}.`); |
| 86 | + console.warn(message, 'Using a fallback image.', error); | |
| 86 | 87 | return await fs.promises.readFile(defaultAvatarPath); |
| 87 | 88 | } |
| 88 | 89 | } |