Add docs for failure message as proc object.

I'm not sure how to generate the documentation locally, so I apologize for any formatting errors.