From 60f36a1a20b34a0907aeb1af013f0f6ed97e45df Mon Sep 17 00:00:00 2001 From: Andrej T Date: Wed, 6 Jul 2016 13:37:03 +0200 Subject: added 'error' messages; exceptions in imgConvert are now errors (not warnings) --- lib/document-to-html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/document-to-html.js') diff --git a/lib/document-to-html.js b/lib/document-to-html.js index f2d5229..6aa7a9c 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -185,7 +185,7 @@ function DocumentConversion(options) { function recoveringConvertImage(convertImage) { return function(image, messages) { return convertImage(image, messages).caught(function(error) { - messages.push(results.warning(error.message)); + messages.push(results.error(error)); return []; }); }; -- cgit v1.2.3