mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 17:55:24 +03:00
Decorate CLI error messages to make them more visible
Now that we've standardized the CLI error messages it's simple to parse these when displayed in the CLI window and make them more visible. This change makes the CLI error messages red and use a bold font.
This commit is contained in:
parent
4859878e2f
commit
836fe3141f
2 changed files with 10 additions and 1 deletions
|
@ -215,7 +215,11 @@ function writeToOutput(text) {
|
|||
}
|
||||
|
||||
function writeLineToOutput(text) {
|
||||
writeToOutput(text + "<br>");
|
||||
if (text.startsWith("###ERROR: ")) {
|
||||
writeToOutput('<span class="error_message">' + text + '</span><br>');
|
||||
} else {
|
||||
writeToOutput(text + "<br>");
|
||||
}
|
||||
}
|
||||
|
||||
function setPrompt(text) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue