mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-21 15:25:22 +03:00
Merge pull request #1314 from etracer65/cli_decorate_errors
Decorate CLI error messages to make them more visible
This commit is contained in:
commit
951eec9aab
2 changed files with 10 additions and 1 deletions
|
@ -61,6 +61,11 @@
|
|||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.tab-cli .window .error_message {
|
||||
color: red;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.tab-cli .save {
|
||||
color: white;
|
||||
}
|
||||
|
|
|
@ -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