Output errors in case of failure.