From ace79b54bd2f673a236a82c06ba82b468f4347ca Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 16 Sep 2026 22:53:11 +0100 Subject: Use .catch() instead of .caught() on promises --- 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 19ef3b0..f6e8bd5 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -201,7 +201,7 @@ function DocumentConversion(options, comments) { return function(image, messages) { return promises.attempt(function() { return convertImage(image, messages); - }).caught(function(error) { + }).catch(function(error) { messages.push(results.error(error)); return []; }); -- cgit v1.2.3