mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Improve error messaging when only warnings issued #4465
This commit is contained in:
@@ -103,4 +103,11 @@ describe('failOn', () => {
|
||||
fs.createReadStream(fixtures.inputJpgTruncated).pipe(writable);
|
||||
return writable.toBuffer();
|
||||
});
|
||||
|
||||
it('converts warnings to error for GeoTIFF', async () => {
|
||||
await assert.rejects(
|
||||
sharp(fixtures.inputTiffGeo).toBuffer(),
|
||||
/Unknown field with tag 33550/
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user