mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-25 17:03:47 +01:00
Improve error reporting if setting is not found
This commit is contained in:
parent
e85a49873a
commit
bca8d3ce07
2
util.cpp
2
util.cpp
@ -25,7 +25,7 @@ inline std::string trim(const std::string &s)
|
|||||||
|
|
||||||
#define EOFCHECK() \
|
#define EOFCHECK() \
|
||||||
if(is.eof()) \
|
if(is.eof()) \
|
||||||
throw std::runtime_error("setting not found");
|
throw std::runtime_error(((std::string) "Setting '") + name + "' not found");
|
||||||
|
|
||||||
std::string get_setting(std::string name, std::istream &is)
|
std::string get_setting(std::string name, std::istream &is)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user