diff options
author | Michał Górny <mgorny@moritz.systems> | 2021-10-15 16:38:09 +0200 |
---|---|---|
committer | Michał Górny <mgorny@moritz.systems> | 2021-10-19 13:31:03 +0200 |
commit | 39f2b059633ec1dc51b10b3fb48b616d87c273e3 (patch) | |
tree | eb48a7c2753aa5f9dd09af79d5489a2e15872302 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h | |
parent | 8fbac4e88ac3dde30310bb63b234045075cd338b (diff) | |
download | llvm-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.h | 5 |
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( |