Mercurial > octave
comparison libinterp/corefcn/error.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 | 55e1412aca35 |
children |
comparison
equal
deleted
inserted
replaced
33381:6f7fe3f85253 | 33382:79cfa1b7a813 |
---|---|
751 else if (all_state == "off") | 751 else if (all_state == "off") |
752 os << "By default, warnings are disabled."; | 752 os << "By default, warnings are disabled."; |
753 else if (all_state == "error") | 753 else if (all_state == "error") |
754 os << "By default, warnings are treated as errors."; | 754 os << "By default, warnings are treated as errors."; |
755 else | 755 else |
756 panic_impossible (); | 756 error ("unexpected default warning state '%s' - please report this bug", all_state.c_str ()); |
757 | 757 |
758 if (nel > 1) | 758 if (nel > 1) |
759 { | 759 { |
760 os << "\n"; | 760 os << "\n"; |
761 os << "Non-default warning states are:\n\n"; | 761 os << "Non-default warning states are:\n\n"; |