Skip to content

Commit

Permalink
simple stderr non-zero error print
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Jun 28, 2024
1 parent a651c22 commit 6c3087c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mod sample;
mod temporary;
mod vmaf;

use ::log::{error, LevelFilter};
use ::log::LevelFilter;
use anyhow::anyhow;
use clap::Parser;
use futures_util::FutureExt;
Expand Down Expand Up @@ -65,10 +65,7 @@ async fn main() {
temporary::clean(keep).await;

if let Err(err) = out {
error!("{err}");
if stderr_term {
eprintln!("Error: {err}");
}
eprintln!("Error: {err}");
std::process::exit(1);
}
}
Expand Down

0 comments on commit 6c3087c

Please sign in to comment.