diff options
author | Lucas CHOLLET <lucas.chollet@free.fr> | 2023-01-14 22:11:56 -0500 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2023-02-04 17:20:31 -0700 |
commit | 689b3c2c264402e5901b1dc7a41ec19209f67164 (patch) | |
tree | ac94911d57387d34ff5d47ef82b3550b781ab9aa /Userland/Applications/HexEditor/HexEditor.cpp | |
parent | a2dca2b76247157376d91d7948adb99e7626f224 (diff) | |
download | serenity-689b3c2c264402e5901b1dc7a41ec19209f67164.zip |
HexEditor: Propagate errors from `HexDocumentFile::set_title()`
Diffstat (limited to 'Userland/Applications/HexEditor/HexEditor.cpp')
-rw-r--r-- | Userland/Applications/HexEditor/HexEditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/HexEditor/HexEditor.cpp b/Userland/Applications/HexEditor/HexEditor.cpp index 623f33c242..e3c28811db 100644 --- a/Userland/Applications/HexEditor/HexEditor.cpp +++ b/Userland/Applications/HexEditor/HexEditor.cpp @@ -141,7 +141,7 @@ ErrorOr<void> HexEditor::save_as(NonnullOwnPtr<Core::Stream::File> new_file) if (m_document->type() == HexDocument::Type::File) { auto& file_document = static_cast<HexDocumentFile&>(*m_document); TRY(file_document.write_to_file(*new_file)); - file_document.set_file(move(new_file)); + TRY(file_document.set_file(move(new_file))); } else { auto& memory_document = static_cast<HexDocumentMemory&>(*m_document); TRY(memory_document.write_to_file(*new_file)); |