gentle clean print instead of error

This commit is contained in:
Quaternions 2024-01-11 02:12:52 -08:00
parent 52b43cef2b
commit d06861daa2

View File

@ -682,10 +682,16 @@ fn write_commit(config:WriteCommitConfig,b:AResult<(AssetVersion,DecompiledConte
{
let mut src=config.output_folder.clone();
src.push("src");
std::fs::remove_dir_all(src)?;
match std::fs::remove_dir_all(src){
Ok(())=>(),
Err(e)=>println!("remove_dir_all src failed {}",e),
}
let mut template=config.output_folder.clone();
template.push("template.rbxlx");
std::fs::remove_file(template)?;
match std::fs::remove_file(template){
Ok(())=>(),
Err(e)=>println!("remove_file template.rbxlx failed {}",e),
}
}
//write files