mirror of
https://git.2ki.xyz/spiders/kijetesantakaluotokieni.git
synced 2024-11-25 03:00:26 +01:00
errors get printed to standard error now
This commit is contained in:
parent
8fd07a32d9
commit
19528ba8ba
1 changed files with 5 additions and 5 deletions
10
src/lib.rs
10
src/lib.rs
|
@ -27,9 +27,9 @@ pub fn run(mode: Modes) {
|
|||
match cli.configs_from_arguments() {
|
||||
Err((s, e)) => {
|
||||
if cli.inli {
|
||||
println!("error:\n{}", e);
|
||||
eprintln!("error:\n{}", e);
|
||||
} else {
|
||||
println!("pakala a!\n{}", s);
|
||||
eprintln!("pakala a!\n{}", s);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -41,9 +41,9 @@ pub fn run(mode: Modes) {
|
|||
match critters::list_files() {
|
||||
Err((s, e)) => {
|
||||
if cli.inli {
|
||||
println!("error: {}", e)
|
||||
eprintln!("error: {}", e)
|
||||
} else {
|
||||
println!("pakala a!\n{}", s)
|
||||
eprintln!("pakala a!\n{}", s)
|
||||
}
|
||||
}
|
||||
Ok(files) => {
|
||||
|
@ -56,7 +56,7 @@ pub fn run(mode: Modes) {
|
|||
} else {
|
||||
io::stdin()
|
||||
.read_to_string(&mut text)
|
||||
.expect("failed to read input");
|
||||
.expect("mi ken ala lukin e pana sina.");
|
||||
}
|
||||
output(&text, critter_config, bubble_config);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue