Skip to content

Commit

Permalink
[CLI] Use get_name in logging validation messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Bwc9876 committed Aug 3, 2023
1 parent c58f0e1 commit 4dc0351
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions owmods_cli/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,7 @@ impl log::Log for Logger {
}

pub fn log_mod_validation_errors(local_mod: &UnsafeLocalMod, local_db: &LocalDatabase) {
let name: &str = match local_mod {
UnsafeLocalMod::Valid(m) => m.manifest.name.as_ref(),
UnsafeLocalMod::Invalid(m) => m.mod_path.as_ref(),
};
let name: &str = local_mod.get_name();
for err in local_mod.get_errs() {
match err {
ModValidationError::MissingDLL(path) => match path {
Expand Down

0 comments on commit 4dc0351

Please sign in to comment.