diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-09-16 22:53:11 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-09-16 22:53:11 +0100 |
| commit | ace79b54bd2f673a236a82c06ba82b468f4347ca (patch) | |
| tree | ea2b0bec90f57d26cdeaff6c0605e25e1dbb3cad /lib/docx | |
| parent | 4ad7de79ffbb89f99e25268a810387a473ad41f3 (diff) | |
Use .catch() instead of .caught() on promises
Diffstat (limited to 'lib/docx')
| -rw-r--r-- | lib/docx/files.js | 2 |
1 files changed, 1 insertions, 1 deletions
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)); }); |
