use fmt properly in beammp_*f logging functions

This commit is contained in:
Lion Kortlepel
2022-03-24 14:45:53 +01:00
parent 9e0d02c6db
commit 7a814ed35e
7 changed files with 20 additions and 18 deletions

View File

@@ -113,7 +113,7 @@ int BeamMPServerMain(MainArguments Arguments) {
try {
fs::current_path(fs::path(MaybeWorkingDirectory.value()));
} catch (const std::exception& e) {
beammp_error("Could not set working directory to '" + MaybeWorkingDirectory.value() + "': " + e.what());
beammp_errorf("Could not set working directory to '{}': {}", MaybeWorkingDirectory.value(), e.what());
}
}
}