From 86edbf41d1ad98b057f0e4e14bbd47eb3b6014f9 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Wed, 26 Oct 2011 00:56:27 +0000 Subject: 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. llvm-svn: 142999 --- lldb/source/Commands/CommandObjectProcess.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lldb/source/Commands/CommandObjectProcess.cpp') diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index 0cea39c8754a..615bf3ce7c2c 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -71,7 +71,7 @@ public: in_new_tty = true; break; default: - error.SetErrorStringWithFormat("Invalid short option character '%c'.\n", short_option); + error.SetErrorStringWithFormat("invalid short option character '%c'", short_option); break; } @@ -442,7 +442,7 @@ public: pid = Args::StringToUInt32 (option_arg, LLDB_INVALID_PROCESS_ID, 0, &success); if (!success || pid == LLDB_INVALID_PROCESS_ID) { - error.SetErrorStringWithFormat("Invalid process ID '%s'.\n", option_arg); + error.SetErrorStringWithFormat("invalid process ID '%s'", option_arg); } break; @@ -459,7 +459,7 @@ public: break; default: - error.SetErrorStringWithFormat("Invalid short option character '%c'.\n", short_option); + error.SetErrorStringWithFormat("invalid short option character '%c'", short_option); break; } return error; @@ -976,7 +976,7 @@ public: break; default: - error.SetErrorStringWithFormat("Invalid short option character '%c'.\n", short_option); + error.SetErrorStringWithFormat("invalid short option character '%c'", short_option); break; } return error; @@ -1541,7 +1541,7 @@ public: pass = option_arg; break; default: - error.SetErrorStringWithFormat("Invalid short option character '%c'.\n", short_option); + error.SetErrorStringWithFormat("invalid short option character '%c'", short_option); break; } return error; -- cgit v1.2.3