# Fail step variable

**URL:** <https://discuss.bitrise.io/t/fail-step-variable/4416>\
**Category:** Question & Answer\
**Created:** [March 8, 2018, 10:51am UTC](https://discuss.bitrise.io/t/fail-step-variable/4416 "2018-03-08T10:51:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bernat](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@bernat](https://discuss.bitrise.io/u/bernat)\
**Post date:** [March 8, 2018, 10:51am UTC](https://discuss.bitrise.io/t/fail-step-variable/4416/1 "2018-03-08T10:51:21Z")

</div>

Hi

Is there any way to get the name, or cause, of the failure for build?

I want to show it on slack, so we know if the build failed because of git merge (conflicts), build, tests, etc…

Thanks

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [March 8, 2018, 4:33pm UTC](https://discuss.bitrise.io/t/fail-step-variable/4416/2 "2018-03-08T16:33:16Z")

</div>

Hi @bernat,

We don’t have a (env) var for that right now, only for the status (failed/success - 1/0 -\> BITRISE\_BUILD\_STATUS [https://devcenter.bitrise.io/faq/available-environment-variables/](https://devcenter.bitrise.io/faq/available-environment-variables/))

Feel free to create a #feature-request if you’d want an env var with the ID of the failed step! 😉
