improved error output from default error handler