Browse Source

config: fix invalid error check when parsing config file

pull/845/head
Antonio SJ Musumeci 4 years ago
parent
commit
7edd3c6cf3
  1. 2
      src/option_parser.cpp

2
src/option_parser.cpp

@ -129,7 +129,7 @@ namespace l
else
{
l::read_config(data_,is);
if(is.fail())
if(!is.eof())
data_->errs->push_back("failure reading config file");
is.close();
}

Loading…
Cancel
Save