changeset 29169:3d6a6faa9225 stable

Show original error when failing to create a graphics object (bug #59620) * graphics.cc (make_graphics_object): Show original error when failing to create a graphics object.
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Thu, 10 Dec 2020 23:23:09 +0100
parents b3f34a22b3fe
children 3ec3e0a5b69e 32fdcf67a683
files libinterp/corefcn/graphics.cc
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc	Mon Dec 07 10:52:36 2020 -0800
+++ b/libinterp/corefcn/graphics.cc	Thu Dec 10 23:23:09 2020 +0100
@@ -13088,8 +13088,8 @@
     }
   catch (octave::execution_exception& e)
     {
-      error (e, "__go_%s__: unable to create graphics handle",
-             go_name.c_str ());
+      error (e, "__go_%s__: %s, unable to create graphics handle",
+             go_name.c_str (), e.message ().c_str ());
     }
 
   try
@@ -13099,8 +13099,8 @@
   catch (octave::execution_exception& e)
     {
       delete_graphics_object (h);
-      error (e, "__go_%s__: unable to create graphics handle",
-             go_name.c_str ());
+      error (e, "__go_%s__: %s, unable to create graphics handle",
+             go_name.c_str (), e.message ().c_str ());
     }
 
   adopt (parent, h);