bit of general error reporting improvements