From 8ae4464fa5303d054eb3b2ce67320b19fdb18bad Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Sun, 31 Dec 2023 17:18:04 +0000 Subject: [PATCH] HexEditor: Propagate HexDocumentFile creation errors in save_as() --- Userland/Applications/HexEditor/HexEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/HexEditor/HexEditor.cpp b/Userland/Applications/HexEditor/HexEditor.cpp index e16255c117..904589ac31 100644 --- a/Userland/Applications/HexEditor/HexEditor.cpp +++ b/Userland/Applications/HexEditor/HexEditor.cpp @@ -139,7 +139,7 @@ ErrorOr HexEditor::save_as(NonnullOwnPtr new_file) } else { auto& memory_document = static_cast(*m_document); TRY(memory_document.write_to_file(*new_file)); - m_document = HexDocumentFile::create(move(new_file)).release_value_but_fixme_should_propagate_errors(); + m_document = TRY(HexDocumentFile::create(move(new_file))); } update();