Used better reporting for errors.
It's still a naive reporting, but at least we
can see what's going on.