aboutsummaryrefslogtreecommitdiff
path: root/lib/docx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/docx')
-rw-r--r--lib/docx/files.js2
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));
});