Throw an error for unrecognized options in data files
This commit is contained in:
parent
06f4c27867
commit
1a43b22791
1 changed files with 2 additions and 11 deletions
|
|
@ -487,17 +487,8 @@ void instance_t::option_directive(char * line)
|
|||
*p++ = '\0';
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (! process_option(pathname.string(), line + 2, scope, p, line) &&
|
||||
! dynamic_cast<session_t *>(&scope)) {
|
||||
if (std::strlen(line + 2) == 1)
|
||||
throw_(option_error, _("Illegal option -%1") << line + 2);
|
||||
else
|
||||
throw_(option_error, _("Illegal option --%1") << line + 2);
|
||||
}
|
||||
#else
|
||||
process_option(pathname.string(), line + 2, scope, p, line);
|
||||
#endif
|
||||
if (! process_option(pathname.string(), line + 2, scope, p, line))
|
||||
throw_(option_error, _("Illegal option --%1") << line + 2);
|
||||
}
|
||||
|
||||
void instance_t::automated_xact_directive(char * line)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue