void
Mussa::load_mupa_stream(std::istream& para_file, fs::path& file_path_base)
{
+ bool error_occured = false;
string file_data_line;
string param, value;
fs::path annot_file;
did_seq = true;
}
//ignore empty lines or that start with '#'
- else if ((param == "") || (param == "#")) {}
+ else if ( (param.size() == 0) || (param[0] == '#'))
+ {} // pass
else
{
clog << "Illegal/misplaced mussa parameter in file\n";
clog << param << "\n";
+ error_occured = true;
}
if (!did_seq)
}
}
+ if (error_occured) {
+ throw mussa_load_error("Error parsing MUPA file");
+ }
soft_thres = threshold;
// no file was loaded, signal error
set_dirty(true);