mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Improve log message when getting a canonical path fails
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user