mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2024-12-28 00:15:06 +00:00
Add category to error message
This commit is contained in:
parent
9f4322951f
commit
0a678224cd
@ -177,10 +177,8 @@ namespace Settings
|
||||
if (it != mDefaultSettings.end())
|
||||
return it->second;
|
||||
|
||||
std::string error("Trying to retrieve a non-existing setting: ");
|
||||
error += setting;
|
||||
error += ".\nMake sure the defaults.bin file was properly installed.";
|
||||
throw std::runtime_error(error);
|
||||
throw std::runtime_error("Trying to retrieve a non-existing setting: [" + std::string(category) + "] "
|
||||
+ std::string(setting) + ".\nMake sure the defaults.bin file was properly installed.");
|
||||
}
|
||||
|
||||
std::vector<std::string> Manager::getStringArray(std::string_view setting, std::string_view category)
|
||||
|
Loading…
Reference in New Issue
Block a user