1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-26 01:35:28 +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:
Michael Keller 2019-03-10 08:49:33 +13:00 committed by GitHub
commit 951eec9aab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -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) {