diff --git a/lldb/examples/python/cmdtemplate.py b/lldb/examples/python/cmdtemplate.py index eec1d3712778..dc8e6b106641 100644 --- a/lldb/examples/python/cmdtemplate.py +++ b/lldb/examples/python/cmdtemplate.py @@ -38,6 +38,7 @@ def ls(debugger, command, result, dict): try: (options, args) = parser.parse_args(command_args) except: + result.SetStatus (lldb.eReturnStatusFailed) return for arg in args: