added output on error.