comparison libinterp/parse-tree/pt-idx.cc @ 20615:729a85dafba8

use new string_value method to handle value extraction errors * ov-class.cc, ov-classdef.cc, ov-fcn-handle.cc, ov-fcn-inline.cc, ov.cc, pt-idx.cc: Use new string_value method.
author John W. Eaton <jwe@octave.org>
date Thu, 08 Oct 2015 17:55:57 -0400
parents 1a0a433c8263
children
comparison
equal deleted inserted replaced
20614:10ec79b47808 20615:729a85dafba8
207 207
208 if (df) 208 if (df)
209 { 209 {
210 octave_value t = df->rvalue1 (); 210 octave_value t = df->rvalue1 ();
211 211
212 if (t.is_string () && t.rows () == 1) 212 fn = t.string_value ("dynamic structure field names must be strings");
213 fn = t.string_value ();
214 else
215 error ("dynamic structure field names must be strings");
216 } 213 }
217 else 214 else
218 panic_impossible (); 215 panic_impossible ();
219 } 216 }
220 217