diff libinterp/corefcn/pr-output.cc @ 33382:79cfa1b7a813

replace nearly all remaining uses of panic_impossible with error Affected files: data.cc, error.cc, find.cc, graphics.in.h, ls-hdf5.cc, oct-hist.cc, oct-stream.cc, pr-output.cc, quad.cc, __init_fltk__.cc, cdef-class.cc, cdef-utils.cc, ov.h, octave.cc, pt-anon-scopes.cc, pt-array-list.cc, pt-assign.cc, pt-cmd.h, pt-eval.cc, pt-idx.cc, pt-stmt.cc, pt-walk.cc, and Sparse.cc.
author John W. Eaton <jwe@octave.org>
date Fri, 12 Apr 2024 11:15:32 -0400
parents 40fde86be9b0
children c714266d9f0d
line wrap: on
line diff
--- a/libinterp/corefcn/pr-output.cc	Fri Apr 12 11:17:04 2024 -0400
+++ b/libinterp/corefcn/pr-output.cc	Fri Apr 12 11:15:32 2024 -0400
@@ -1775,7 +1775,7 @@
 octave_print_internal (std::ostream&, const float_display_format&,
                        char, bool)
 {
-  panic_impossible ();
+  error ("unexpected call to 'octave_print_internal (std::ostream&, const float_display_format&, char, bool)' - please report this bug");
 }
 
 void
@@ -3186,13 +3186,13 @@
 void
 octave_print_internal (std::ostream&, const Cell&, bool, int, bool)
 {
-  panic_impossible ();
+  error ("unexpected call to 'octave_print_internal (std::ostream&, const Cell&, bool, int, bool)' - please report this bug");
 }
 
 void
 octave_print_internal (std::ostream&, const octave_value&, bool)
 {
-  panic_impossible ();
+  error ("unexpected call to 'octave_print_internal (std::ostream&, const octave_value&, bool)' - please report this bug");
 }
 
 OCTAVE_BEGIN_NAMESPACE(octave)