probonopd / zsync-curl

Partial/differential file download client over HTTP(S)
110 stars 23 forks source link

Clear error message in case checksums don't match #24

Closed probonopd closed 6 years ago

probonopd commented 7 years ago

Currently if the zsync file is corrupt (i.e., its SHA1 checksum does not match the SHA1 checksum of the payload file), then we don't get an insightful error message.

me@host:~$ ./zsync_curl "http://ftp2.nluug.nl/os/Linux/distr/opensuse/repositories/home:/adrianSuSE:/AppImage/AppImage/QtQuickApp-1495317991.fce72f3.glibc2.2.5-x86_64.AppImage.zsync"Target QtQuickApp-1495317991.fce72f3.glibc2.2.5-x86_64.AppImage
Read QtQuickApp-1495317991.fce72f3.glibc2.2.5-x86_64.AppImage. Target 100.0% complete.      
downloading from http://ftp2.nluug.nl/os/Linux/distr/opensuse/repositories/home:/adrianSuSE:/AppImage/AppImage/QtQuickApp-1495317991.fce72f3.glibc2.2.5-x86_64.AppImage:
###################- 100.0% 0.0 kBps aborted    

failed to retrieve from QtQuickApp-1495317991.fce72f3.glibc2.2.5-x86_64.AppImage 1
Aborting, download available in QtQuickApp-1495317991.fce72f3.glibc2.2.5-x86_64.AppImage.part

If this happens, then it should give a more useful error message about what happened.

TheAssassin commented 6 years ago

Please switch to zsync2, and report bugs there if you find some. Closing as this repository is no longer developed.