aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
diff options
context:
space:
mode:
authorMichał Górny <mgorny@moritz.systems>2021-10-15 16:38:09 +0200
committerMichał Górny <mgorny@moritz.systems>2021-10-19 13:31:03 +0200
commit39f2b059633ec1dc51b10b3fb48b616d87c273e3 (patch)
treeeb48a7c2753aa5f9dd09af79d5489a2e15872302 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
parent8fbac4e88ac3dde30310bb63b234045075cd338b (diff)
downloadllvm-39f2b059633ec1dc51b10b3fb48b616d87c273e3.zip
llvm-39f2b059633ec1dc51b10b3fb48b616d87c273e3.tar.gz
llvm-39f2b059633ec1dc51b10b3fb48b616d87c273e3.tar.bz2
[lldb] [Host] Make Terminal methods return llvm::Error
Differential Revision: https://reviews.llvm.org/D111890
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
index 443a65a..65f5e34 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
@@ -435,8 +435,9 @@ public:
TerminalState terminal_state(terminal);
if (terminal.IsATerminal()) {
- terminal.SetCanonical(false);
- terminal.SetEcho(true);
+ // FIXME: error handling?
+ llvm::consumeError(terminal.SetCanonical(false));
+ llvm::consumeError(terminal.SetEcho(true));
}
ScriptInterpreterPythonImpl::Locker locker(