added error output for exceptions