aboutsummaryrefslogtreecommitdiff
path: root/lib/document-to-html.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-09-16 22:53:11 +0100
committerMichael Williamson <mike@zwobble.org>2026-09-16 22:53:11 +0100
commitace79b54bd2f673a236a82c06ba82b468f4347ca (patch)
treeea2b0bec90f57d26cdeaff6c0605e25e1dbb3cad /lib/document-to-html.js
parent4ad7de79ffbb89f99e25268a810387a473ad41f3 (diff)
Use .catch() instead of .caught() on promises
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 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 [];
});