Skip to content

Improve the error message with corrupted zip. - #202

Merged
Stuk merged 1 commit into
Stuk:masterfrom
dduponchel:feature-error-message
Feb 19, 2015
Merged

Improve the error message with corrupted zip.#202
Stuk merged 1 commit into
Stuk:masterfrom
dduponchel:feature-error-message

Conversation

@dduponchel

Copy link
Copy Markdown
Contributor

Check if the content is a truncated zip or complete garbage.

A "LOCAL_FILE_HEADER" is not required at the beginning (auto extractible zip
for example) but it can give a good hint. If an ajax request was used without
responseType, we will also get unreadable data.

Fix #182.

Check if the content is a truncated zip or complete garbage.

A "LOCAL_FILE_HEADER" is not required at the beginning (auto extractible zip
for example) but it can give a good hint. If an ajax request was used without
responseType, we will also get unreadable data.

Fix Stuk#182.
Stuk added a commit that referenced this pull request Feb 19, 2015
Improve the error message with corrupted zip.
@Stuk
Stuk merged commit bcbfe4a into Stuk:master Feb 19, 2015
@dduponchel dduponchel mentioned this pull request Mar 10, 2015
@dduponchel
dduponchel deleted the feature-error-message branch March 24, 2016 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Throw a more informative error if the file does not start with 0x50 0x4B 0x03 0x04

2 participants