diff libinterp/corefcn/ordschur.cc @ 20703:85e5efae848a

eliminate more uses of error_state * ov.h, ov.cc: Provide more value extractors that handle error messages. * besselj.cc, daspk.cc, dasrt.cc, dassl.cc, file-io.cc, graphics.cc, matrix_type.cc, ordschur.cc, utils.cc, __eigs__.cc, __magick_read__.cc: Eliminate more uses of error_state.
author John W. Eaton <jwe@octave.org>
date Sat, 14 Nov 2015 12:07:38 -0500
parents 4f45eaf83908
children 571508c1ed06
line wrap: on
line diff
--- a/libinterp/corefcn/ordschur.cc	Sat Nov 14 13:31:00 2015 +0100
+++ b/libinterp/corefcn/ordschur.cc	Sat Nov 14 12:07:38 2015 -0500
@@ -116,12 +116,8 @@
       return retval;
     }
 
-  const Array<octave_idx_type> sel = args(2).octave_idx_type_vector_value ();
-  if (error_state)
-    {
-      error ("ordschur: SELECT must be an array of integers");
-      return retval;
-    }
+  const Array<octave_idx_type> sel = args(2).octave_idx_type_vector_value ("ordschur: SELECT must be an array of integers");
+
   const octave_idx_type n = sel.numel ();
 
   const dim_vector dimU = args(0).dims ();