diff options
author | Nick Brassel <[email protected]> | 2022-02-05 12:32:31 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-02-04 17:32:31 -0800 |
commit | e987ce16525137efb50ce02a6552384851b49f88 (patch) | |
tree | 7d884608e7913d8f4c95c088d4fa6c7108c3aeef /builddefs/message.mk | |
parent | 45406c0ca2649a16e28ce1020adb5fb8588220ca (diff) | |
download | qmk_firmware-e987ce16525137efb50ce02a6552384851b49f88.tar.gz qmk_firmware-e987ce16525137efb50ce02a6552384851b49f88.zip |
Standardise error output. (#16220)
Diffstat (limited to 'builddefs/message.mk')
-rw-r--r-- | builddefs/message.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/builddefs/message.mk b/builddefs/message.mk index 1187491452..d441f560be 100644 --- a/builddefs/message.mk +++ b/builddefs/message.mk @@ -101,3 +101,8 @@ MSG_FLASH_ARCH = $(WARN_COLOR)WARNING:$(NO_COLOR) This board's architecture is n MSG_BOOTLOADER_NOT_FOUND = $(ERROR_COLOR)ERROR:$(NO_COLOR) $(MSG_BOOTLOADER_NOT_FOUND_BASE) Trying again in 5s (Ctrl+C to cancel)\n BOOTLOADER_RETRY_TIME ?= 0.5 MSG_BOOTLOADER_NOT_FOUND_QUICK_RETRY = $(MSG_BOOTLOADER_NOT_FOUND_BASE) Trying again every $(BOOTLOADER_RETRY_TIME)s (Ctrl+C to cancel) + +define CATASTROPHIC_ERROR + $(shell printf "\n * %-99s $(ERROR_STRING)\n" "$2" >&2) + $(error $1) +endef
\ No newline at end of file |