mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +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() });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user