linux-traipu team mailing list archive
-
linux-traipu team
-
Mailing list archive
-
Message #04375
[Bug 943657] Re: Better error message on startup / drizzled.cc
"unknown option foo" is described by a
boost::program_options::unknown_option(foo) , and this is thrown as a
exception.
To format "unknown option foo" as "Unknown option foo" , either boost function need to be modified or string manipulation should be performed on error msg thrown by boost.
And modification in boost lib is not related with drizzle .
So still we need such formatting?
--
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to Drizzle.
https://bugs.launchpad.net/bugs/943657
Title:
Better error message on startup / drizzled.cc
Status in A Lightweight SQL Database for Cloud Infrastructure and Web Applications:
Confirmed
Bug description:
In drizzled/drizzled.cc several checks are made on startup and if they
fail then drizzled will abort with an error message.
For instance if I do
sbin/drizzled --foo
then I will get the error
Aborting:"Use --help to get a list of available options. unknown
option foo". Abort was called from drizzled/drizzled.cc:1369 in
init_variables_after_daemonizing()
This is a result of following code:
catch (po::unknown_option &err)
{
unireg_abort << "Use --help to get a list of available options. " << err.what();
The error message is very confusing, lacks spaces and capitalization. It would be much better if it was worded like this:
Aborting: Unknown option foo. Use --help to get a list of available options.
Abort was called from drizzled/drizzled.cc:1369 in init_variables_after_daemonizing()
To manage notifications about this bug go to:
https://bugs.launchpad.net/drizzle/+bug/943657/+subscriptions
Follow ups
References