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

FontEditor: Include file basename in error messages when available

And write messages in the [action] failed: [error] format to match
common error message formatting elsewhere in Userland.
This commit is contained in:
thankyouverycool 2022-08-15 07:20:20 -04:00 committed by Andreas Kling
parent 9725fd162f
commit 92a75ccaed
3 changed files with 24 additions and 22 deletions

View file

@ -84,7 +84,7 @@ private:
void push_undo();
void reset_selection_and_push_undo();
void show_error(StringView preface, Error);
void show_error(Error, StringView action, StringView basename = {});
RefPtr<Gfx::BitmapFont> m_edited_font;