changeset 29595:f72796c1ccbc

Include invalid property name in error message from set() (bug #60487). * graphics.cc (Fset): Add property string to error() function call when property is unrecognized.
author Rik <rik@octave.org>
date Mon, 03 May 2021 08:24:57 -0700
parents 26af8b64a739
children d2b56b5e9d43
files libinterp/corefcn/graphics.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc	Sun May 02 21:00:31 2021 -0400
+++ b/libinterp/corefcn/graphics.cc	Mon May 03 08:24:57 2021 -0700
@@ -13004,7 +13004,7 @@
                 }
             }
           else
-            error ("set: unknown property");
+            error (R"(set: unknown property "%s")", property.c_str ());
         }
       else if (nargin == 1)
         {