Trim space from end of libvips error messages

This commit is contained in:
Lovell Fuller
2023-03-24 09:58:21 +00:00
parent 0af070ed93
commit b55e58f31e
6 changed files with 16 additions and 4 deletions

View File

@@ -293,7 +293,7 @@ describe('Partial image extraction', function () {
.extract({ left: 3000, top: 10, width: 10, height: 10 })
.toBuffer(function (err) {
assert(err instanceof Error);
assert.strictEqual(err.message, 'extract_area: bad extract area\n');
assert.strictEqual(err.message, 'extract_area: bad extract area');
done();
});
});