Fail builds without stack trace

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 is unable to build a bibliography due to invalid BibTeX.

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

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

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