summaryrefslogtreecommitdiffstats
path: root/lldb/examples/python
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2013-02-21 18:38:46 +0000
committerJim Ingham <jingham@apple.com>2013-02-21 18:38:46 +0000
commit6c00a01526f56a6b6071e8e0a529eafee4ff60ea (patch)
tree6fa41952d85412e58b56f21834cf0323117d27f0 /lldb/examples/python
parentab28b9ae7324bf4cfe9c830eabcfd9f2e0ccff53 (diff)
downloadbcm5719-llvm-6c00a01526f56a6b6071e8e0a529eafee4ff60ea.tar.gz
bcm5719-llvm-6c00a01526f56a6b6071e8e0a529eafee4ff60ea.zip
Mark the command as failed if parsing fails.
llvm-svn: 175776
Diffstat (limited to 'lldb/examples/python')
-rw-r--r--lldb/examples/python/cmdtemplate.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/examples/python/cmdtemplate.py b/lldb/examples/python/cmdtemplate.py
index eec1d371277..dc8e6b10664 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:
OpenPOWER on IntegriCloud