It helps if we print the error message
Merge pull request #981 from tswsl1989/pngit

It helps if we print the error message