diff --git a/src/option_types.hh b/src/option_types.hh index a0f14f5c3..3d8e74760 100644 --- a/src/option_types.hh +++ b/src/option_types.hh @@ -198,6 +198,8 @@ inline void option_from_string(const String& str, YesNoAsk& opt) opt = No; else if (str == "ask") opt = Ask; + else + throw runtime_error("invalid value '" + str + "', expected yes, no or ask"); } }