Merge lp:~mohyt/drizzle/trunk-bug-943657 into lp:~drizzle-trunk/drizzle/development

Proposed by Mohit Srivastava
Status: Merged
Approved by: Brian Aker
Approved revision: 2528
Merged at revision: 2533
Proposed branch: lp:~mohyt/drizzle/trunk-bug-943657
Merge into: lp:~drizzle-trunk/drizzle/development
Diff against target: 49 lines (+6/-6)
1 file modified
drizzled/drizzled.cc (+6/-6)
To merge this branch: bzr merge lp:~mohyt/drizzle/trunk-bug-943657
Reviewer Review Type Date Requested Status
Olaf van der Spek (community) Needs Fixing
Drizzle Merge Team Pending
Review via email: mp+98063@code.launchpad.net

Description of the change

Bug : 943657

Various error messages are formatted

To post a comment you must log in.
Revision history for this message
Olaf van der Spek (olafvdspek) wrote :

Hi Mohit,

Nice one! I'm missing a space between << and " and >> though.

review: Needs Fixing
Revision history for this message
Mohit Srivastava (mohyt) wrote :

Hi Olaf ,

Will you please post the test result ?

--
Mohit

On Mon, Mar 19, 2012 at 4:45 PM, Olaf van der Spek <email address hidden>wrote:

> Review: Needs Fixing
>
> Hi Mohit,
>
> Nice one! I'm missing a space between << and " and >> though.
> --
>
> https://code.launchpad.net/~srivastavamohit91/drizzle/trunk-bug-943657/+merge/98063
> You are the owner of lp:~srivastavamohit91/drizzle/trunk-bug-943657.
>

Revision history for this message
Olaf van der Spek (olafvdspek) wrote :

What test result?
I'm talking about the code:
unireg_abort << err.what() <<". "<< "Use --help to get a list of available options. ";
should be
unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";

lp:~mohyt/drizzle/trunk-bug-943657 updated
2529. By Mohit Srivastava

Space between << and " and << modify.

Revision history for this message
Mohit Srivastava (mohyt) wrote :

Hi Olaf,

I updated the code with related query.
--
Mohit

Revision history for this message
Olaf van der Spek (olafvdspek) wrote :

Thanks. But now there are two spaces between unireg_abort and <<.
On the second change a space is missing before unireg_abort.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'drizzled/drizzled.cc'
2--- drizzled/drizzled.cc 2012-02-12 08:22:19 +0000
3+++ drizzled/drizzled.cc 2012-03-20 11:50:25 +0000
4@@ -1276,7 +1276,7 @@
5 }
6 catch (po::validation_error &err)
7 {
8- unireg_abort << "Use --help to get a list of available options. " << err.what();
9+ unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";
10 }
11
12 if (vm.count("version"))
13@@ -1317,7 +1317,7 @@
14 }
15 catch (po::validation_error &err)
16 {
17- unireg_abort << "Use --help to get a list of available options. " << err.what();
18+ unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";
19 }
20
21 return true;
22@@ -1357,15 +1357,15 @@
23 }
24 catch (po::validation_error &err)
25 {
26- unireg_abort << "Use --help to get a list of available options. " << err.what();
27+ unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";
28 }
29 catch (po::invalid_command_line_syntax &err)
30 {
31- unireg_abort << "Use --help to get a list of available options. " << err.what();
32+ unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";
33 }
34 catch (po::unknown_option &err)
35 {
36- unireg_abort << "Use --help to get a list of available options. " << err.what();
37+ unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";
38 }
39
40 try
41@@ -1374,7 +1374,7 @@
42 }
43 catch (po::validation_error &err)
44 {
45- unireg_abort << "Use --help to get a list of available options. " << err.what();
46+ unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";
47 }
48
49 get_options();