Skip to content
Snippets Groups Projects
Commit af4395bb authored by Steven Murray's avatar Steven Murray
Browse files

Corrected the 'Wrong number of command-line arguments' error message

parent 508107ed
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ CreateAdminHostCmdLineArgs::CreateAdminHostCmdLineArgs(const int argc, char *con
// Check the number of arguments
if(nbArgs != 1) {
exception::CommandLineNotParsed ex;
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << (argc - 1);
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << nbArgs;
throw ex;
}
......
......@@ -99,7 +99,7 @@ CreateAdminUserCmdLineArgs::CreateAdminUserCmdLineArgs(const int argc, char *con
// Check the number of arguments
if(nbArgs != 1) {
exception::CommandLineNotParsed ex;
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << (argc - 1);
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << nbArgs;
throw ex;
}
......
......@@ -84,7 +84,7 @@ CreateSchemaCmdLineArgs::CreateSchemaCmdLineArgs(const int argc, char *const *co
// Check the number of arguments
if(nbArgs != 1) {
exception::CommandLineNotParsed ex;
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << (argc - 1);
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << nbArgs;
throw ex;
}
......
......@@ -84,7 +84,7 @@ DeleteAllCatalogueDataCmdLineArgs::DeleteAllCatalogueDataCmdLineArgs(const int a
// Check the number of arguments
if(nbArgs != 1) {
exception::CommandLineNotParsed ex;
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << (argc - 1);
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << nbArgs;
throw ex;
}
......
......@@ -84,7 +84,7 @@ DropSchemaCmdLineArgs::DropSchemaCmdLineArgs(const int argc, char *const *const
// Check the number of arguments
if(nbArgs != 1) {
exception::CommandLineNotParsed ex;
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << (argc - 1);
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << nbArgs;
throw ex;
}
......
......@@ -84,7 +84,7 @@ LockSchemaCmdLineArgs::LockSchemaCmdLineArgs(const int argc, char *const *const
// Check the number of arguments
if(nbArgs != 1) {
exception::CommandLineNotParsed ex;
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << (argc - 1);
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << nbArgs;
throw ex;
}
......
......@@ -86,7 +86,7 @@ PollDatabaseCmdLineArgs::PollDatabaseCmdLineArgs(const int argc, char *const *co
// Check the number of arguments
if(nbArgs != 2) {
exception::CommandLineNotParsed ex;
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << (argc - 1);
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << nbArgs;
throw ex;
}
......
......@@ -84,7 +84,7 @@ SchemaStatusCmdLineArgs::SchemaStatusCmdLineArgs(const int argc, char *const *co
// Check the number of arguments
if(nbArgs != 1) {
exception::CommandLineNotParsed ex;
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << (argc - 1);
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << nbArgs;
throw ex;
}
......
......@@ -85,7 +85,7 @@ UnlockSchemaCmdLineArgs::UnlockSchemaCmdLineArgs(const int argc, char *const *co
// Check the number of arguments
if(nbArgs != 1) {
exception::CommandLineNotParsed ex;
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << (argc - 1);
ex.getMessage() << "Wrong number of command-line arguments: excepted=1 actual=" << nbArgs;
throw ex;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment