mirror of
https://github.com/RustySamovar/RustySamovar.git
synced 2024-11-24 03:13:32 +00:00
Only output missing groups when there're some
This commit is contained in:
parent
00f40d2bde
commit
5af44e8900
@ -142,7 +142,9 @@ impl LuaManager {
|
||||
let groups = groups.into_iter().map(|(group_id, result)| (group_id, result.unwrap())).collect();
|
||||
let errors: Vec<_> = errors.into_iter().map(|(group_id, result)| (group_id, result.unwrap_err())).collect();
|
||||
|
||||
println!("Missing groups: {:?}", errors);
|
||||
if errors.len() > 0 {
|
||||
println!("Missing groups: {:?}", errors);
|
||||
}
|
||||
groups
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user