Skip to content

Commit 7815b19

Browse files
committed
fix(encoding): made errors print to io::stderr instead of io::stdout
1 parent 159f3f2 commit 7815b19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/encoding.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ pub fn generate_command(state: &AV1Studio) -> Command {
3434
if !state.input_file.is_empty() {
3535
cmd.arg("-i").arg(&state.input_file);
3636
} else {
37-
println!("ERROR : Input file path needs to be provided\n");
37+
eprintln!("ERROR : Input file path needs to be provided\n");
3838
}
3939
if !state.output_file.is_empty() {
4040
cmd.arg("-o").arg(&state.output_file);
4141
} else {
42-
println!("ERROR : Output file path needs to be provided\n");
42+
eprintln!("ERROR : Output file path needs to be provided\n");
4343
}
4444
if !state.scenes_file.is_empty() {
4545
cmd.arg("--scenes").arg(&state.scenes_file);

0 commit comments

Comments
 (0)