diff --git a/include/CLI/App.hpp b/include/CLI/App.hpp index 22412bd..db14431 100644 --- a/include/CLI/App.hpp +++ b/include/CLI/App.hpp @@ -1357,7 +1357,7 @@ class App { std::string name; std::string rest; if(!detail::split_short(current, name, rest)) - throw HorribleError("Short"); + throw HorribleError("Short parsed but missing! You should not see this"); auto op_ptr = std::find_if( std::begin(options_), std::end(options_), [name](const Option_p &opt) { return opt->check_sname(name); }); @@ -1437,7 +1437,7 @@ class App { std::string name; std::string value; if(!detail::split_long(current, name, value)) - throw HorribleError("Long:" + args.back()); + throw HorribleError("Long parsed but missing (you should not see this):" + args.back()); auto op_ptr = std::find_if( std::begin(options_), std::end(options_), [name](const Option_p &v) { return v->check_lname(name); }); diff --git a/include/CLI/Ini.hpp b/include/CLI/Ini.hpp index bab094d..9d3663f 100644 --- a/include/CLI/Ini.hpp +++ b/include/CLI/Ini.hpp @@ -106,7 +106,7 @@ inline std::vector parse_ini(const std::string &name) { std::ifstream input{name}; if(!input.good()) - throw FileError(name); + throw FileError(name + " was not readable (missing?)"); return parse_ini(input); } diff --git a/include/CLI/Option.hpp b/include/CLI/Option.hpp index 414bcf9..b44d06d 100644 --- a/include/CLI/Option.hpp +++ b/include/CLI/Option.hpp @@ -428,13 +428,13 @@ class Option : public OptionBase