Added precise error messages for failures on jobs.

Added precise error messages for failures on jobs.