Skip to content

Commit

Permalink
Don't bail if unable to clean
Browse files Browse the repository at this point in the history
Allows other directories to still be processed
  • Loading branch information
alpha-tango-kilo authored and marcospb19 committed Jul 27, 2024
1 parent 5075756 commit 178c360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use cargo_metadata::{Error, Metadata, MetadataCommand};
use crossterm::tty::IsTty;
use fern::colors::{Color, ColoredLevelConfig};

use log::{debug, error, info};
use log::{debug, error, info, warn};
use std::{
env,
ffi::OsStr,
Expand Down Expand Up @@ -165,7 +165,7 @@ fn main() -> anyhow::Result<()> {
if out.exists() {
return_paths.push(out);
} else {
anyhow::bail!("Failed to clean {:?} as it does not exist.", out)
warn!("Failed to clean {:?} as it does not exist.", out)
};
}
return_paths
Expand Down

0 comments on commit 178c360

Please sign in to comment.