In light of the above comment, I would rewrite this sentence to go better with the above: "Normally, when something goes wrong in your actions, you fail the process by setting the context to failure".

I think this makes the documentation flow better with the below text about the error codes and the use of the word "However" in the first sentence of the first paragraph after the example just below this comment. :smiley: