changeset 32220:e039114b8a1a stable

subsasgn: Add function name to error message (bug #64213). * libinterp/octave-value/ov-struct.cc (octave_struct::subsasgn): Add function name to error message.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 29 Jul 2023 13:41:41 +0200
parents ae8c5b698912
children e0dbf8def91c 17529acb5248
files libinterp/octave-value/ov-struct.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov-struct.cc	Fri Jul 28 18:52:12 2023 +0200
+++ b/libinterp/octave-value/ov-struct.cc	Sat Jul 29 13:41:41 2023 +0200
@@ -325,7 +325,7 @@
                   error ("subsasgn: dynamic structure field names must be strings");
 
                 std::string key
-                  = key_idx(0).xstring_value ("dynamic structure field names must be strings");
+                  = key_idx(0).xstring_value ("subsasgn: dynamic structure field names must be strings");
 
                 maybe_warn_invalid_field_name (key, "subsasgn");