From 7edd3c6cf3e1b3ca66cc062976167bcddd4f4cc1 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sat, 28 Nov 2020 20:26:18 -0500 Subject: [PATCH] config: fix invalid error check when parsing config file --- src/option_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/option_parser.cpp b/src/option_parser.cpp index 7b9d33c6..5646ee14 100644 --- a/src/option_parser.cpp +++ b/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(); }