Skip to content

Commit b362544

Browse files
committed
Fail if parser's config file does not exist.
1 parent 4dd3174 commit b362544

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/config/parser.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,8 @@ bool parser::load_configuration_variables(variables_map& variables,
9595
const auto path = get_config_option(variables, option_name);
9696
const auto extended = extended_path(path);
9797

98-
// If the existence test errors out we pretend there's no file :/.
9998
std::error_code code{};
100-
if (!path.empty() && std::filesystem::exists(extended, code))
99+
if (!path.empty() /*&& std::filesystem::exists(extended, code)*/)
101100
{
102101
ifstream file{ path };
103102
if (!file.good())

0 commit comments

Comments
 (0)