Log output on error.