# Exit successfully after error

**URL:** <https://community.gatling.io/t/exit-successfully-after-error/4058>\
**Category:** Gatling (Open-Source)\
**Created:** [November 22, 2017, 3:19pm UTC](https://community.gatling.io/t/exit-successfully-after-error/4058 "2017-11-22T15:19:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pureza](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@pureza](https://community.gatling.io/u/pureza)\
**Post date:** [November 22, 2017, 3:19pm UTC](https://community.gatling.io/t/exit-successfully-after-error/4058/1 "2017-11-22T15:19:34Z")

</div>

Hi,

Is there any way to instruct gatling to exit a scenario immediately after an error but without reporting the failure as a KO? Something similar to .exitHereIfFailed but without the failed status.

I understand that this might be considered a bad practice, but I have a scenario that can fail every so often due to the way we setup test data, but the failures are so rare that I just want the virtual user to abort successfully so that gatling can try with a new one. Otherwise, the added noise in the output may hide real errors.

Thanks,

Luis
