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/Interpreter/Args.cpp b/source/Interpreter/Args.cpp
index 7205cb6..592b0ef 100644
--- a/source/Interpreter/Args.cpp
+++ b/source/Interpreter/Args.cpp
@@ -584,7 +584,7 @@
struct option *long_options = options.GetLongOptions();
if (long_options == NULL)
{
- error.SetErrorStringWithFormat("Invalid long options.\n");
+ error.SetErrorStringWithFormat("invalid long options");
return error;
}
@@ -620,7 +620,7 @@
// Did we get an error?
if (val == '?')
{
- error.SetErrorStringWithFormat("Unknown or ambiguous option.\n");
+ error.SetErrorStringWithFormat("unknown or ambiguous option");
break;
}
// The option auto-set itself
@@ -651,7 +651,7 @@
}
else
{
- error.SetErrorStringWithFormat("Invalid option with value '%i'.\n", val);
+ error.SetErrorStringWithFormat("invalid option with value '%i'", val);
}
if (error.Fail())
break;
@@ -940,7 +940,7 @@
}
else
{
- error.SetErrorStringWithFormat("%s option string.\n", s ? "empty" : "invalid");
+ error.SetErrorStringWithFormat("%s option string", s ? "empty" : "invalid");
}
return error;
}