Skip to content
Permalink
Browse files

Use eprint instead of new line

  • Loading branch information...
Raggaer committed Jun 11, 2019
1 parent 89de116 commit 3b40cabc6055df0bae04839cfdf83e1d7b6a247e
Showing with 3 additions and 4 deletions.
  1. +0 −1 src/command/list/user.rs
  2. +3 −3 src/command/mod.rs
@@ -1,5 +1,4 @@
use std::error;
use std::string;

pub fn execute_list_user_command() -> Result<(), Box<dyn error::Error>> {
// Retrieve JSON
@@ -92,17 +92,17 @@ pub fn execute_list_command(
"items" => crate::command::list::item::execute_list_item_command(search),
"users" => crate::command::list::user::execute_list_user_command(),
sub => {
eprintln!("Unkown subcommand '{}'", sub);
eprint!("Unkown subcommand '{}'", sub);
Ok(())
}
},
None => {
eprintln!("Missing subcommand flag (-s)");
eprint!("Missing subcommand flag (-s)");
Ok(())
}
};
if let Err(e) = r {
eprintln!("{}", e);
eprint!("{}", e);
}
}

0 comments on commit 3b40cab

Please sign in to comment.
You can’t perform that action at this time.