diff options
| author | Michael Williamson <mike@zwobble.org> | 2018-01-23 21:29:18 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2018-01-23 21:29:18 +0000 |
| commit | 2140507b59adb87353835f5a285da81edfdf8fa2 (patch) | |
| tree | 0b08f125864b90a0137483fd828664e423915dc7 | |
| parent | fae22b10bf8664ee65a2674b9c7cdbf926dd758f (diff) | |
Adjust error message
| -rw-r--r-- | lib/docx/docx-reader.js | 2 | ||||
| -rw-r--r-- | test/mammoth.tests.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/docx/docx-reader.js b/lib/docx/docx-reader.js index f0b6c89..8423782 100644 --- a/lib/docx/docx-reader.js +++ b/lib/docx/docx-reader.js @@ -75,7 +75,7 @@ function read(docxFile, input) { }); }); } else { - throw new Error("Could not find word/document.xml in ZIP file. Are you sure this is a valid .docx file?"); + throw new Error("Could not find main document part. Are you sure this is a valid .docx file?"); } }); } diff --git a/test/mammoth.tests.js b/test/mammoth.tests.js index 2dbdbe4..3ce96d4 100644 --- a/test/mammoth.tests.js +++ b/test/mammoth.tests.js @@ -424,6 +424,6 @@ test('should throw error if file is not a valid docx document', function() { return mammoth.convertToHtml({path: docxPath}).then(function(result) { assert.ok(false, "Expected error"); }, function(error) { - assert.equal(error.message, "Could not find word/document.xml in ZIP file. Are you sure this is a valid .docx file?"); + assert.equal(error.message, "Could not find main document part. Are you sure this is a valid .docx file?"); }); }); |
