Fix exception throw (#28104)

* fix exception throw

* fix settings crash

* throw runtime_error
This commit is contained in:
Davide Giacometti
2023-08-24 14:53:48 +02:00
committed by GitHub
parent 83143169c6
commit 738072f508
5 changed files with 18 additions and 18 deletions

View File

@@ -342,7 +342,7 @@ private:
}
else
{
throw;
throw std::runtime_error("Invalid Press Time Windows Shortcuts value");
}
value = static_cast<int>(jsonPressTimeForTaskbarIconShortcutsObject.GetNamedNumber(L"value"));
if (value >= 0)
@@ -351,7 +351,7 @@ private:
}
else
{
throw;
throw std::runtime_error("Invalid Press Time Taskbar Shortcuts value");
}
}
catch (...)