Error reporting improvements.