1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-14 11:59:58 +03:00

Merge pull request #9632 from mikeller/improve_error_formatting

Improved styling of error messages in CLI.
This commit is contained in:
Michael Keller 2020-06-22 00:22:24 +12:00 committed by GitHub
commit 88cf45872f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -452,7 +452,7 @@ void cliPrintLinef(const char *format, ...)
static void cliPrintErrorVa(const char *cmdName, const char *format, va_list va) static void cliPrintErrorVa(const char *cmdName, const char *format, va_list va)
{ {
if (cliErrorWriter) { if (cliErrorWriter) {
cliPrintInternal(cliErrorWriter, "###ERROR: "); cliPrintInternal(cliErrorWriter, "###ERROR IN ");
cliPrintInternal(cliErrorWriter, cmdName); cliPrintInternal(cliErrorWriter, cmdName);
cliPrintInternal(cliErrorWriter, ": "); cliPrintInternal(cliErrorWriter, ": ");