From 83ff7d9de9ffebdf37cb97bf9364bcb134727e0b Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Tue, 29 May 2018 11:33:33 +0200 Subject: [PATCH] Simplify the DNL (Define Number of Lines) marker warning in `JpegImage.parse` --- src/core/jpg.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/jpg.js b/src/core/jpg.js index bd9748dae..7c29935b7 100644 --- a/src/core/jpg.js +++ b/src/core/jpg.js @@ -907,8 +907,7 @@ var JpegImage = (function JpegImageClosure() { offset += processed; } catch (ex) { if (ex instanceof DNLMarkerError) { - warn('Attempting to re-parse JPEG image using "scanLines" ' + - 'parameter found in DNL marker (0xFFDC) segment.'); + warn(`${ex.message} -- attempting to re-parse the JPEG image.`); return this.parse(data, { dnlScanLines: ex.scanLines, }); } else if (ex instanceof EOIMarkerError) { warn(`${ex.message} -- ignoring the rest of the image data.`);