Fixed error reporting when things go bad.