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/docx/files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/docx') diff --git a/lib/docx/files.js b/lib/docx/files.js index cb8655c..0d1adb9 100644 --- a/lib/docx/files.js +++ b/lib/docx/files.js @@ -26,7 +26,7 @@ function Files(options) { function read(uri, encoding) { return resolveUri(uri).then(function(path) { - return readFile(path, encoding).caught(function(error) { + return readFile(path, encoding).catch(function(error) { var message = "could not open external image: '" + uri + "' (document directory: '" + base + "')\n" + error.message; return promises.reject(new Error(message)); }); -- cgit v1.2.3