From 836fe3141f8e9e751d27f68b8d3aeee69c522769 Mon Sep 17 00:00:00 2001 From: Bruce Luckcuck Date: Thu, 7 Mar 2019 10:57:26 -0500 Subject: [PATCH] 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. --- src/css/tabs/cli.css | 5 +++++ src/js/tabs/cli.js | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/css/tabs/cli.css b/src/css/tabs/cli.css index 5f5d5808..08e39a50 100644 --- a/src/css/tabs/cli.css +++ b/src/css/tabs/cli.css @@ -61,6 +61,11 @@ white-space: pre-wrap; } +.tab-cli .window .error_message { + color: red; + font-weight: bold; +} + .tab-cli .save { color: white; } diff --git a/src/js/tabs/cli.js b/src/js/tabs/cli.js index 84ef17bc..f1163ece 100644 --- a/src/js/tabs/cli.js +++ b/src/js/tabs/cli.js @@ -215,7 +215,11 @@ function writeToOutput(text) { } function writeLineToOutput(text) { - writeToOutput(text + "
"); + if (text.startsWith("###ERROR: ")) { + writeToOutput('' + text + '
'); + } else { + writeToOutput(text + "
"); + } } function setPrompt(text) {