Fix: continuing of compiling on IO error

Also the error message was prettied up, somewhat.

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>