From ab6c54ecb126dfbd6c9f08c42523337d33cdeeef Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Wed, 28 Aug 2024 17:40:48 +0300 Subject: [PATCH] If a palette fails to save, show an error popup with an error code and message Instead of just a notification, which can easily be missed and it doesn't explain the cause of the error --- src/Autoload/Palettes.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Autoload/Palettes.gd b/src/Autoload/Palettes.gd index d7209aebd..236fde980 100644 --- a/src/Autoload/Palettes.gd +++ b/src/Autoload/Palettes.gd @@ -69,7 +69,7 @@ func save_palette(palette: Palette = current_palette) -> void: palette.path = save_path var err := palette.save_to_file() if err != OK: - Global.notification_label("Failed to save palette") + Global.popup_error("Failed to save palette. Error code %s (%s)" % [err, error_string(err)]) func copy_palette() -> void: