Cleaned up many error codes. For any who is filling in error strings into
lldb_private::Error objects the rules are:
- short strings that don't start with a capitol letter unless the name is a
  class or anything else that is always capitolized
- no trailing newline character
- should be one line if possible

Implemented a first pass at adding "--gdb-format" support to anything that
accepts format with optional size/count.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@142999 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectExpression.cpp b/source/Commands/CommandObjectExpression.cpp
index dde97b2..29fea1e 100644
--- a/source/Commands/CommandObjectExpression.cpp
+++ b/source/Commands/CommandObjectExpression.cpp
@@ -76,7 +76,7 @@
       //case 'l':
       //if (language.SetLanguageFromCString (option_arg) == false)
       //{
-      //    error.SetErrorStringWithFormat("Invalid language option argument '%s'.\n", option_arg);
+      //    error.SetErrorStringWithFormat("invalid language option argument '%s'", option_arg);
       //}
       //break;
 
@@ -90,7 +90,7 @@
             bool result;
             result = Args::StringToBoolean(option_arg, true, &success);
             if (!success)
-                error.SetErrorStringWithFormat("Invalid dynamic value setting: \"%s\".\n", option_arg);
+                error.SetErrorStringWithFormat("invalid dynamic value setting: \"%s\"", option_arg);
             else
             {
                 if (result)
@@ -106,11 +106,11 @@
             bool success;
             unwind_on_error = Args::StringToBoolean(option_arg, true, &success);
             if (!success)
-                error.SetErrorStringWithFormat("Could not convert \"%s\" to a boolean value.", option_arg);
+                error.SetErrorStringWithFormat("could not convert \"%s\" to a boolean value.", option_arg);
             break;
         }
     default:
-        error.SetErrorStringWithFormat("Invalid short option character '%c'.\n", short_option);
+        error.SetErrorStringWithFormat("invalid short option character '%c'", short_option);
         break;
     }