You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2011/06/05 07:50:06 UTC
svn commit: r1131911 - in /incubator/mesos/trunk/src: configurator.cpp
configurator.hpp
Author: benh
Date: Sun Jun 5 05:50:06 2011
New Revision: 1131911
URL: http://svn.apache.org/viewvc?rev=1131911&view=rev
Log:
added single quotes as mateiz suggested
Modified:
incubator/mesos/trunk/src/configurator.cpp
incubator/mesos/trunk/src/configurator.hpp
Modified: incubator/mesos/trunk/src/configurator.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/configurator.cpp?rev=1131911&r1=1131910&r2=1131911&view=diff
==============================================================================
--- incubator/mesos/trunk/src/configurator.cpp (original)
+++ incubator/mesos/trunk/src/configurator.cpp Sun Jun 5 05:50:06 2011
@@ -169,7 +169,7 @@ void Configurator::loadCommandLine(int a
shortName = args[i][1];
if (shortName == '\0' || getLongName(shortName) == "") {
- string message = "Short option " + args[i] + " unrecognized ";
+ string message = "Short option '" + args[i] + "' unrecognized ";
throw ConfigurationException(message.c_str());
}
Modified: incubator/mesos/trunk/src/configurator.hpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/configurator.hpp?rev=1131911&r1=1131910&r2=1131911&view=diff
==============================================================================
--- incubator/mesos/trunk/src/configurator.hpp (original)
+++ incubator/mesos/trunk/src/configurator.hpp Sun Jun 5 05:50:06 2011
@@ -321,7 +321,7 @@ private:
{
if (options.find(key) != options.end() &&
options[key].validator->isBool() != gotBool) {
- string message = "Option " + key + " should ";
+ string message = "Option '" + key + "' should ";
if (gotBool)
message += "not ";
message += "be a boolean.";