mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
Catch std::exception by reference (#20385)
This commit is contained in:
@@ -66,7 +66,7 @@ public:
|
||||
|
||||
ParseSettings(values);
|
||||
}
|
||||
catch (std::exception ex)
|
||||
catch (std::exception& ex)
|
||||
{
|
||||
Logger::error("Failed to parse settings. {}", ex.what());
|
||||
}
|
||||
@@ -261,7 +261,7 @@ private:
|
||||
|
||||
ParseSettings(settings);
|
||||
}
|
||||
catch (std::exception ex)
|
||||
catch (std::exception& ex)
|
||||
{
|
||||
Logger::error("Failed to init settings. {}", ex.what());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user