mirror of
https://git.2ki.xyz/spiders/kijetesantakaluotokieni.git
synced 2024-11-22 01:40:25 +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() {
|
match cli.configs_from_arguments() {
|
||||||
Err((s, e)) => {
|
Err((s, e)) => {
|
||||||
if cli.inli {
|
if cli.inli {
|
||||||
println!("error:\n{}", e);
|
eprintln!("error:\n{}", e);
|
||||||
} else {
|
} else {
|
||||||
println!("pakala a!\n{}", s);
|
eprintln!("pakala a!\n{}", s);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -41,9 +41,9 @@ pub fn run(mode: Modes) {
|
||||||
match critters::list_files() {
|
match critters::list_files() {
|
||||||
Err((s, e)) => {
|
Err((s, e)) => {
|
||||||
if cli.inli {
|
if cli.inli {
|
||||||
println!("error: {}", e)
|
eprintln!("error: {}", e)
|
||||||
} else {
|
} else {
|
||||||
println!("pakala a!\n{}", s)
|
eprintln!("pakala a!\n{}", s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(files) => {
|
Ok(files) => {
|
||||||
|
@ -56,7 +56,7 @@ pub fn run(mode: Modes) {
|
||||||
} else {
|
} else {
|
||||||
io::stdin()
|
io::stdin()
|
||||||
.read_to_string(&mut text)
|
.read_to_string(&mut text)
|
||||||
.expect("failed to read input");
|
.expect("mi ken ala lukin e pana sina.");
|
||||||
}
|
}
|
||||||
output(&text, critter_config, bubble_config);
|
output(&text, critter_config, bubble_config);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue