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/OptionGroupValueObjectDisplay.cpp b/source/Interpreter/OptionGroupValueObjectDisplay.cpp
index bda9b68..ae4116f 100644
--- a/source/Interpreter/OptionGroupValueObjectDisplay.cpp
+++ b/source/Interpreter/OptionGroupValueObjectDisplay.cpp
@@ -88,13 +88,13 @@
case 'D':
max_depth = Args::StringToUInt32 (option_arg, UINT32_MAX, 0, &success);
if (!success)
- error.SetErrorStringWithFormat("Invalid max depth '%s'.\n", option_arg);
+ error.SetErrorStringWithFormat("invalid max depth '%s'", option_arg);
break;
case 'P':
ptr_depth = Args::StringToUInt32 (option_arg, 0, 0, &success);
if (!success)
- error.SetErrorStringWithFormat("Invalid pointer depth '%s'.\n", option_arg);
+ error.SetErrorStringWithFormat("invalid pointer depth '%s'", option_arg);
break;
case 'Y':
@@ -102,7 +102,7 @@
{
no_summary_depth = Args::StringToUInt32 (option_arg, 0, 0, &success);
if (!success)
- error.SetErrorStringWithFormat("Invalid pointer depth '%s'.\n", option_arg);
+ error.SetErrorStringWithFormat("invalid pointer depth '%s'", option_arg);
}
else
no_summary_depth = 1;
@@ -111,10 +111,10 @@
case 'S':
use_synth = Args::StringToBoolean(option_arg, true, &success);
if (!success)
- error.SetErrorStringWithFormat("Invalid synthetic-type '%s'.\n", option_arg);
+ error.SetErrorStringWithFormat("invalid synthetic-type '%s'", option_arg);
break;
default:
- error.SetErrorStringWithFormat ("Unrecognized option '%c'.\n", short_option);
+ error.SetErrorStringWithFormat ("unrecognized option '%c'", short_option);
break;
}