diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-09-01 19:29:01 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-09-01 19:29:01 +0000 |
commit | 434b81d0a26a69df5b6862d09c0feca8f99ae391 (patch) | |
tree | fba9270a5d63e868de27d7a18baa5f2ba771db37 /lldb/source/Commands/CommandObjectLog.cpp | |
parent | d63ddee5ab7dd14db4f847447e23621332610dc7 (diff) | |
download | llvm-434b81d0a26a69df5b6862d09c0feca8f99ae391.zip llvm-434b81d0a26a69df5b6862d09c0feca8f99ae391.tar.gz llvm-434b81d0a26a69df5b6862d09c0feca8f99ae391.tar.bz2 |
[lldb] Test and fix invalid log command invocations
llvm-svn: 370619
Diffstat (limited to 'lldb/source/Commands/CommandObjectLog.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectLog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectLog.cpp b/lldb/source/Commands/CommandObjectLog.cpp index ae8b175..314405e 100644 --- a/lldb/source/Commands/CommandObjectLog.cpp +++ b/lldb/source/Commands/CommandObjectLog.cpp @@ -140,6 +140,7 @@ protected: result.AppendErrorWithFormat( "%s takes a log channel and one or more log types.\n", m_cmd_name.c_str()); + result.SetStatus(eReturnStatusFailed); return false; } @@ -207,6 +208,7 @@ protected: result.AppendErrorWithFormat( "%s takes a log channel and one or more log types.\n", m_cmd_name.c_str()); + result.SetStatus(eReturnStatusFailed); return false; } |