Improve the error message with corrupted zip. #202

Merged
merged 1 commit into from Feb 19, 2015

Projects

None yet

2 participants

@dduponchel
Collaborator

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.

@dduponchel dduponchel Improve the error message with corrupted zip.
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.
ab2d305
@Stuk Stuk merged commit bcbfe4a into Stuk:master Feb 19, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@dduponchel dduponchel referenced this pull request Mar 10, 2015
Merged

Release v2.5.0 #206

@dduponchel dduponchel deleted the dduponchel:feature-error-message branch Mar 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment