# Fail builds without stack trace

**URL:** <https://talk.jekyllrb.com/t/fail-builds-without-stack-trace/6704>\
**Category:** Help\
**Created:** [November 18, 2021, 7:22pm UTC](https://talk.jekyllrb.com/t/fail-builds-without-stack-trace/6704 "2021-11-18T19:22:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcnesium](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mcnesium/32/512_2.png) [@mcnesium](https://talk.jekyllrb.com/u/mcnesium)\
**Post date:** [November 18, 2021, 7:22pm UTC](https://talk.jekyllrb.com/t/fail-builds-without-stack-trace/6704/1 "2021-11-18T19:22:57Z")

</div>

I try to have `jekyll build` fail on errors _without_ all the traceback output, and only have the actual error shown.

Here is a build that fails because [jekyll-scholar](https://github.com/inukshuk/jekyll-scholar) is unable to build a bibliography due to invalid BibTeX.

This is the command: `bundle exec jekyll build --quiet` and here is the error:

 ![Screenshot from 2021-11-18 20-12-11](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/2X/2/22140b84d383827e7fd8df9fc1d948f88ac6c004.png)

Here the same with trace: `bundle exec jekyll build --trace` and the error looks like this:

 ![Screenshot from 2021-11-18 20-13-44](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/2X/a/a59274d0f1ab76d0d4207af45b9930d338bf1240.png)

It seems like neither `--quiet` nor `--trace` actually make a difference, except that the “please add --trace” note is missing.

I would like the entire stack trace to be excluded from the output and only have the actual error message shown. How can I do that? This is using Jekyll 4.2
