Skip to content

Commit

Permalink
minor error output adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerwooo committed Dec 3, 2023
1 parent 2f812dd commit f822785
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bitsrun"
description = "A headless login and logout CLI app for 10.0.0.55 at BIT"
description = "A headless login and logout CLI for 10.0.0.55 at BIT"
version = "0.3.0"
edition = "2021"
license = "MIT"
Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ use tables::print_login_state;
async fn main() {
if let Err(err) = cli().await {
eprintln!(
"{} {} {}",
"bitsrun:".if_supports_color(Stderr, |t| t.bright_red()),
"[error]".if_supports_color(Stderr, |t| t.dimmed()),
"{} {}: {}",
"bitsrun".if_supports_color(Stderr, |t| t.bright_red()),
"(error)".if_supports_color(Stderr, |t| t.dimmed()),
err
);
std::process::exit(1);
Expand Down

0 comments on commit f822785

Please sign in to comment.