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
=== modified file 'drizzled/drizzled.cc'
--- drizzled/drizzled.cc 2012-02-12 08:22:19 +0000
+++ drizzled/drizzled.cc 2012-03-20 11:50:25 +0000
@@ -1276,7 +1276,7 @@
1276 }1276 }
1277 catch (po::validation_error &err)1277 catch (po::validation_error &err)
1278 {1278 {
1279 unireg_abort << "Use --help to get a list of available options. " << err.what(); 1279 unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";
1280 }1280 }
12811281
1282 if (vm.count("version"))1282 if (vm.count("version"))
@@ -1317,7 +1317,7 @@
1317 }1317 }
1318 catch (po::validation_error &err)1318 catch (po::validation_error &err)
1319 {1319 {
1320 unireg_abort << "Use --help to get a list of available options. " << err.what();1320 unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";
1321 }1321 }
13221322
1323 return true;1323 return true;
@@ -1357,15 +1357,15 @@
1357 }1357 }
1358 catch (po::validation_error &err)1358 catch (po::validation_error &err)
1359 {1359 {
1360 unireg_abort << "Use --help to get a list of available options. " << err.what();1360 unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";
1361 }1361 }
1362 catch (po::invalid_command_line_syntax &err)1362 catch (po::invalid_command_line_syntax &err)
1363 {1363 {
1364 unireg_abort << "Use --help to get a list of available options. " << err.what();1364 unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";
1365 }1365 }
1366 catch (po::unknown_option &err)1366 catch (po::unknown_option &err)
1367 {1367 {
1368 unireg_abort << "Use --help to get a list of available options. " << err.what();1368 unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";
1369 }1369 }
13701370
1371 try1371 try
@@ -1374,7 +1374,7 @@
1374 }1374 }
1375 catch (po::validation_error &err)1375 catch (po::validation_error &err)
1376 {1376 {
1377 unireg_abort << "Use --help to get a list of available options. " << err.what();1377 unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";
1378 }1378 }
13791379
1380 get_options();1380 get_options();