diff options
Diffstat (limited to 'hscript/network.cc')
-rw-r--r-- | hscript/network.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hscript/network.cc b/hscript/network.cc index 8f79d96..9456d09 100644 --- a/hscript/network.cc +++ b/hscript/network.cc @@ -17,10 +17,8 @@ using namespace Horizon::Keys; Key *Network::parseFromData(const std::string data, int lineno, int *errors, int *warnings) { bool value; - if(!BooleanKey::parse(data, &value)) { - output_error("installfile:" + std::to_string(lineno), - "network: expected 'true' or 'false'", - "'" + data + "' is not a valid Boolean value"); + if(!BooleanKey::parse(data, "installfile:" + std::to_string(lineno), + "network", &value)) { if(errors) *errors += 1; return nullptr; } |