1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:27:45 +00:00

TextEditor: Propagate errors from read_file()

This commit is contained in:
Lucas CHOLLET 2023-01-14 18:02:35 -05:00 committed by Jelle Raaijmakers
parent 3454185d08
commit a053807be5
3 changed files with 9 additions and 11 deletions

View file

@ -25,7 +25,7 @@ class MainWidget final : public GUI::Widget {
public:
virtual ~MainWidget() override = default;
bool read_file(String const& filename, Core::Stream::File&);
ErrorOr<void> read_file(String const& filename, Core::Stream::File&);
void open_nonexistent_file(DeprecatedString const& path);
bool request_close();