Catch std::exception by reference (#20385)

This commit is contained in:
NN
2022-09-11 19:50:13 +03:00
committed by GitHub
parent 675d79a4aa
commit 922d21f9f1
13 changed files with 24 additions and 24 deletions

View File

@@ -187,7 +187,7 @@ namespace winrt::PowerRenameUI::implementation
SetHandlers();
ReadSettings();
}
catch (std::exception e)
catch (std::exception& e)
{
Logger::error("Exception thrown during explorer items population: {}", std::string{ e.what() });
}

View File

@@ -286,7 +286,7 @@ public:
Trace::SettingsChanged();
}
catch (std::exception e)
catch (std::exception& e)
{
Logger::error("Configuration parsing failed: {}", std::string{ e.what() });
}