diff options
author | Tilmann Meyer <allescrafterx@gmail.com> | 2020-09-28 22:38:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-28 16:38:50 -0400 |
commit | 22336834109a1659069acdfb1dfeb324206a9fc9 (patch) | |
tree | a3071d855ae1129817e000fb77932c1c5608cd6d /src/configure.rs | |
parent | 3c668e6e6ac0c0ee7dbe2ef69ede1e4a16ec1c9c (diff) |
feat: add error messaging (#1576)
This creates a custom logger for the log crate which logs everything to a file (/tmp/starship/session_$STARSHIP_SESSION_KEY.log) and it logs everything above Warn to stderr, but only if the log file does not contain the line that should be logged resulting in an error or warning to be only logged at the first starship invocation after opening the shell.
Diffstat (limited to 'src/configure.rs')
-rw-r--r-- | src/configure.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/configure.rs b/src/configure.rs index efd9007d9..ac9b93e3f 100644 --- a/src/configure.rs +++ b/src/configure.rs @@ -80,7 +80,6 @@ pub fn edit_configuration() { environment variables correctly?", editor_cmd ); - eprintln!("Full error: {:?}", error); std::process::exit(1) } other_error => panic!("failed to open file: {:?}", other_error), |