We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e07969 commit 4d2d035Copy full SHA for 4d2d035
1 file changed
src/index.js
@@ -14,7 +14,9 @@ const handler = async (event) => {
14
15
// Validate JPEG buffer
16
if (fileBuffer[0] !== 0xff || fileBuffer[1] !== 0xd8) {
17
- throw new Error('Invalid JPEG file. SOI marker not found.');
+ throw new Error(
18
+ `Invalid JPEG file. SOI marker not found. ${fileBuffer[0]}`
19
+ );
20
}
21
22
// Decode the JPEG to get raw pixel data
0 commit comments