Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
More sensible error message if file is not a zip file.
Browse files Browse the repository at this point in the history
  • Loading branch information
augustl committed Feb 12, 2010
1 parent 055a5bf commit 5ca70f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js-epub.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
unzipBlob: function () {
var unzipper = new this.unzipperConstructor(this.blob);
if (!unzipper.isZipFile()) {
throw new Error("Provided file was not a zip file.");
throw new Error("Invalid EPUB archive format.");
}

unzipper.readEntries();
Expand Down

0 comments on commit 5ca70f3

Please sign in to comment.