From 5488058d7ca995fcaaf642dcbe31dbc0255fe4be Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 16 Sep 2026 23:21:05 +0100 Subject: Rename promises.attempt() to try() --- 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 f6e8bd5..32c455f 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -199,7 +199,7 @@ function DocumentConversion(options, comments) { function recoveringConvertImage(convertImage) { return function(image, messages) { - return promises.attempt(function() { + return promises.try(function() { return convertImage(image, messages); }).catch(function(error) { messages.push(results.error(error)); -- cgit v1.2.3