summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorNathan Lilienthal <nathan@nixpulvis.com>2019-01-06 19:06:57 -0500
committerChristian Duerr <chrisduerr@users.noreply.github.com>2019-01-07 00:06:57 +0000
commit04707cbba630e3e4ad6b4200bef8ae7888c49e3b (patch)
treebd04f4964d4c4ad67cd565b38172b488172acfcc /src/main.rs
parentdfc30eeef5eb6df9f658e62875e5cde93173e37b (diff)
downloadalacritty-04707cbba630e3e4ad6b4200bef8ae7888c49e3b.tar.gz
alacritty-04707cbba630e3e4ad6b4200bef8ae7888c49e3b.zip
Normalize Log Message Strings
The general style for errors, warnings and info messages is to start with a capitalized letter and end without a period. The main exception is when dealing with nouns that are clearer with special case handling, e.g. "macOS failed to work" or "ioctl is borked".
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index ca8da5af..7c23616d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -99,8 +99,8 @@ fn load_config(options: &cli::Options) -> Config {
Config::load_from(&*config_path).unwrap_or_else(|err| {
match err {
- ConfigError::Empty => info!("Config file {:?} is empty; Loading default", config_path),
- _ => error!("Error: {}; Loading default config", err),
+ ConfigError::Empty => info!("Config file {:?} is empty; loading default", config_path),
+ _ => error!("Error: {}; loading default config", err),
}
Config::default()
@@ -116,9 +116,9 @@ fn run(
options: &cli::Options,
mut logger_proxy: LoggerProxy,
) -> Result<(), Box<dyn Error>> {
- info!("Welcome to Alacritty.");
+ info!("Welcome to Alacritty");
if let Some(config_path) = config.path() {
- info!("Configuration loaded from {}", config_path.display());
+ info!("Configuration loaded from {:?}", config_path.display());
};
// Set environment variables
@@ -264,7 +264,7 @@ fn run(
#[cfg(windows)]
unsafe { FreeConsole(); }
- info!("Goodbye.");
+ info!("Goodbye");
if !options.persistent_logging && !config.persistent_logging() {
logger_proxy.delete_log();