From 434d9c2504668b93fce0798d06dc284025619fef Mon Sep 17 00:00:00 2001 From: Romain Deltour Date: Fri, 22 Dec 2017 02:30:44 +0100 Subject: [PATCH] fix(unzip): tweak error message to indicate possible ZIP corruption See #121 --- packages/epub-utils/src/epub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/epub-utils/src/epub.js b/packages/epub-utils/src/epub.js index 0455a553..0613ec1e 100644 --- a/packages/epub-utils/src/epub.js +++ b/packages/epub-utils/src/epub.js @@ -35,7 +35,7 @@ class EPUB { const tmpdir = tmp.dirSync({ unsafeCleanup: true }); // remove even when not empty unzip(this.path, { dir: tmpdir.name }, (err) => { if (err) { - winston.error('Failed to unzip EPUB'); + winston.error('Failed to unzip EPUB (the ZIP archive may be corrupt).'); reject(err); } else { this.basedir = tmpdir.name;