commonsmachinery / blockhash

blockhash.io
MIT License
88 stars 28 forks source link

Print detailed error messages for failed operations #1

Open jonasob opened 10 years ago

jonasob commented 10 years ago

Seems to work reasonably well, but I've found a PNG file on which it breaks. Might be good to figure out at least why it breaks on this one :)

jonas@dev:~$ blockhash/build/blockhash EZSYG.png Error opening image file EZSYG.png

(it doesn't actually have a problem opening it, but it seems this is the error thrown for any error parsing a file once opened)

ezsyg

artfwo commented 10 years ago

This file is corrupt (a CRC error). We can provide error details for such images, though, so I'm renaming the issue accordingly.