mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[FancyZones] Initial improvements in FancyZones exception handling (#6063)
* Initial improvements in FancyZones exception handling * Add callback * Disable FancyZones if error durign loading data occurrs * Remove logs * Add resource strings * Add 1sec retry when failure during initialization occurs * Rephrase error descriptions * Error handling during loading of module in runner * Pass error handling on the runner * Remove unneeded string * Remove unnedeed changes
This commit is contained in:
@@ -20,7 +20,7 @@ PowertoyModule load_powertoy(const std::wstring_view filename)
|
||||
if (!module)
|
||||
{
|
||||
FreeLibrary(handle);
|
||||
winrt::throw_last_error();
|
||||
winrt::throw_hresult(winrt::hresult(E_POINTER));
|
||||
}
|
||||
return PowertoyModule(module, handle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user