mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 09:46:54 +02:00
Catch std::exception by reference (#20385)
This commit is contained in:
@@ -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() });
|
||||
}
|
||||
|
||||
@@ -286,7 +286,7 @@ public:
|
||||
|
||||
Trace::SettingsChanged();
|
||||
}
|
||||
catch (std::exception e)
|
||||
catch (std::exception& e)
|
||||
{
|
||||
Logger::error("Configuration parsing failed: {}", std::string{ e.what() });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user