diff --git a/include/armadillo_bits/Cube_meat.hpp b/include/armadillo_bits/Cube_meat.hpp index aa2de20c..9cf7fa56 100644 --- a/include/armadillo_bits/Cube_meat.hpp +++ b/include/armadillo_bits/Cube_meat.hpp @@ -4495,7 +4495,6 @@ Cube::load(const hdf5_name& spec, const file_type type) if( (type != hdf5_binary) && (type != hdf5_binary_trans) ) { - (*this).soft_reset(); arma_stop_runtime_error("Cube::load(): unsupported file type for hdf5_name()"); return false; } diff --git a/include/armadillo_bits/Mat_meat.hpp b/include/armadillo_bits/Mat_meat.hpp index 733dfdde..5da2299b 100644 --- a/include/armadillo_bits/Mat_meat.hpp +++ b/include/armadillo_bits/Mat_meat.hpp @@ -7425,7 +7425,7 @@ Mat::save(const csv_name& spec, const file_type type) const if(type != csv_ascii) { - arma_debug_check(true, "Mat::save(): unsupported file type for csv_name()"); + arma_stop_runtime_error("Mat::save(): unsupported file type for csv_name()"); return false; } @@ -7531,7 +7531,7 @@ Mat::save(std::ostream& os, const file_type type) const break; default: - arma_warn("Mat::save(): unsupported file type"); + arma_debug_warn("Mat::save(): unsupported file type"); save_okay = false; } @@ -7630,7 +7630,6 @@ Mat::load(const hdf5_name& spec, const file_type type) if( (type != hdf5_binary) && (type != hdf5_binary_trans) ) { - (*this).soft_reset(); arma_stop_runtime_error("Mat::load(): unsupported file type for hdf5_name()"); return false; } @@ -7683,7 +7682,7 @@ Mat::load(const csv_name& spec, const file_type type) if(type != csv_ascii) { - arma_debug_check(true, "Mat::load(): unsupported file type for csv_name()"); + arma_stop_runtime_error("Mat::load(): unsupported file type for csv_name()"); return false; }