diff options
author | Qyriad <qyriad@qyriad.me> | 2024-05-19 12:57:14 -0600 |
---|---|---|
committer | Qyriad <qyriad@qyriad.me> | 2024-05-23 18:10:23 +0000 |
commit | 677cf75473d0dd86119c4535d8733a6a0b1100c0 (patch) | |
tree | 0947ca1a53fa0a3a34ef1b493eb92cc8ec4af4d5 /src/libcmd/repl-interacter.hh | |
parent | 79121e0c44d74de6f2f2841770d31090a6ea3c6b (diff) |
repl: log errors writing to history file
These errors are now logged and explicitly ignored, rather than
implicitly ignored.
Change-Id: Ia26015466a17f2b11952df5317a4d150d79dc184
Diffstat (limited to 'src/libcmd/repl-interacter.hh')
-rw-r--r-- | src/libcmd/repl-interacter.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libcmd/repl-interacter.hh b/src/libcmd/repl-interacter.hh index c31b1a1e6..8f815fceb 100644 --- a/src/libcmd/repl-interacter.hh +++ b/src/libcmd/repl-interacter.hh @@ -42,6 +42,11 @@ public: } virtual Guard init(detail::ReplCompleterMixin * repl) override; virtual bool getLine(std::string & input, ReplPromptType promptType) override; + /** Writes the current history to the history file. + * + * This function logs but ignores errors from readline's write_history(). + */ + virtual void writeHistory(); virtual ~ReadlineLikeInteracter() override; }; |