fix invalid value handling for yes no ask options

This commit is contained in:
Maxime Coste 2013-11-16 00:26:56 +00:00
parent 62137f364d
commit cb7ef23c44

View File

@ -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");
}
}