qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
18.27k stars 39.37k forks source link

[Feature Request] "qmk compile" non-zero exit code on compilation error #22686

Closed xudongzheng closed 11 months ago

xudongzheng commented 11 months ago

Feature Request Type

Description

Having qmk compile exit with non-zero makes it easier to use as part of a larger script.

To demonstrate issue:

# Add some garbage to C file.
date >> keyboards/adafruit/macropad/macropad.c

qmk compile -kb adafruit/macropad -km default
echo $?
tzarc commented 11 months ago

Was fixed as of #22639.