fix invalid value handling for yes no ask options
This commit is contained in:
parent
62137f364d
commit
cb7ef23c44
|
@ -198,6 +198,8 @@ inline void option_from_string(const String& str, YesNoAsk& opt)
|
||||||
opt = No;
|
opt = No;
|
||||||
else if (str == "ask")
|
else if (str == "ask")
|
||||||
opt = Ask;
|
opt = Ask;
|
||||||
|
else
|
||||||
|
throw runtime_error("invalid value '" + str + "', expected yes, no or ask");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user