aboutsummaryrefslogtreecommitdiff
path: root/lib/document-to-html.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/document-to-html.js')
-rw-r--r--lib/document-to-html.js2
1 files changed, 1 insertions, 1 deletions
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));