[gimp] app: better error messages when killing a plug-in for invalid tile access



commit d7f76fbba0b9e4b053a3759ceaa0d40c986b2652
Author: Michael Natterer <mitch gimp org>
Date:   Sat Aug 31 16:39:21 2019 +0200

    app: better error messages when killing a plug-in for invalid tile access

 app/plug-in/gimpplugin-message.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/app/plug-in/gimpplugin-message.c b/app/plug-in/gimpplugin-message.c
index c367230221..51e5fc70c0 100644
--- a/app/plug-in/gimpplugin-message.c
+++ b/app/plug-in/gimpplugin-message.c
@@ -306,9 +306,10 @@ gimp_plug_in_handle_tile_put (GimpPlugIn *plug_in,
     {
       gimp_message (plug_in->manager->gimp, NULL, GIMP_MESSAGE_ERROR,
                     "Plug-in \"%s\"\n(%s)\n\n"
-                    "requested invalid tile (killing)",
+                    "requested invalid tile #%d for writing (killing)",
                     gimp_object_get_name (plug_in),
-                    gimp_file_get_utf8_name (plug_in->file));
+                    gimp_file_get_utf8_name (plug_in->file),
+                    tile_info->tile_num);
       gimp_plug_in_close (plug_in, TRUE);
       return;
     }
@@ -397,9 +398,10 @@ gimp_plug_in_handle_tile_get (GimpPlugIn *plug_in,
     {
       gimp_message (plug_in->manager->gimp, NULL, GIMP_MESSAGE_ERROR,
                     "Plug-in \"%s\"\n(%s)\n\n"
-                    "requested invalid tile (killing)",
+                    "requested invalid tile #%d for reading (killing)",
                     gimp_object_get_name (plug_in),
-                    gimp_file_get_utf8_name (plug_in->file));
+                    gimp_file_get_utf8_name (plug_in->file),
+                    request->tile_num);
       gimp_plug_in_close (plug_in, TRUE);
       return;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]