File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,8 @@ if (vm.count("response-file")) {
115
115
ss << ifs.rdbuf();
116
116
// Split the file content
117
117
char_separator<char> sep(" \n\r");
118
- tokenizer<char_separator<char> > tok(ss.str(), sep);
118
+ std::string ResponsefileContents( ss.str() );
119
+ tokenizer<char_separator<char> > tok(ResponsefileContents, sep);
119
120
vector<string> args;
120
121
copy(tok.begin(), tok.end(), back_inserter(args));
121
122
// Parse the file and store the options
@@ -295,7 +296,7 @@ void validate(boost::any& v,
295
296
if (regex_match(s, match, r)) {
296
297
v = any(magic_number(lexical_cast<int>(match[1])));
297
298
} else {
298
- throw validation_error("invalid value" );
299
+ throw validation_error(valodation_error::invalid_option_value );
299
300
}
300
301
}
301
302
]]>
You can’t perform that action at this time.
0 commit comments