mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
PixelPaint: Use new String to format error messages
This commit is contained in:
parent
5b84fafbca
commit
8b4158633b
3 changed files with 21 additions and 21 deletions
|
@ -130,7 +130,7 @@ PaletteWidget::PaletteWidget()
|
|||
|
||||
auto result = load_palette_path("/res/color-palettes/default.palette");
|
||||
if (result.is_error()) {
|
||||
GUI::MessageBox::show_error(window(), DeprecatedString::formatted("Loading default palette failed: {}", result.error()));
|
||||
GUI::MessageBox::show_error(window(), MUST(String::formatted("Loading default palette failed: {}", result.release_error())));
|
||||
display_color_list(fallback_colors());
|
||||
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue