Better error message on startup / drizzled.cc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
Low
|
Mohit Srivastava |
Bug Description
In drizzled/
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/
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/
Related branches
- Olaf van der Spek (community): Needs Fixing
- Drizzle Merge Team: Pending requested
-
Diff: 49 lines (+6/-6)1 file modifieddrizzled/drizzled.cc (+6/-6)
Changed in drizzle: | |
status: | Confirmed → Fix Committed |
Changed in drizzle: | |
status: | Fix Committed → Fix Released |
"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?