From a36f6b782e36958fb23677e025ae55a2c3997452 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sun, 12 May 2019 19:04:52 +0100 Subject: [PATCH] Improve log message when getting a canonical path fails --- src/api/sorting/plugin_sorter.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/api/sorting/plugin_sorter.cpp b/src/api/sorting/plugin_sorter.cpp index 2ad6908c..1804fafa 100644 --- a/src/api/sorting/plugin_sorter.cpp +++ b/src/api/sorting/plugin_sorter.cpp @@ -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; }