Adjust documentation for on_error feature