Improve log message when getting a canonical path fails

This commit is contained in:
Oliver Hamlet
2019-05-12 19:04:52 +01:00
parent 8fed4b0292
commit a36f6b782e
+5 -4
View File
@@ -331,12 +331,13 @@ void PluginSorter::AddHardcodedPluginEdges(Game& game) {
try {
processedPluginPaths.insert(std::filesystem::canonical(pluginPath));
} catch (std::filesystem::filesystem_error&) {
} catch (std::filesystem::filesystem_error& e) {
if (logger_) {
logger_->trace(
"Skipping adding hardcoded plugin edges for \"{}\" as it is not "
"installed.",
plugin);
"Skipping adding hardcoded plugin edges for \"{}\" as its "
"canonical path could not be determined: {}",
plugin,
e.what());
}
continue;
}