ecopcr: made some errors more informative

This commit is contained in:
Celine Mercier
2020-04-09 09:15:28 +02:00
parent b9f68c76c8
commit 98cfb70d73
2 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
major = 3
minor = 0
serial= '0-beta12a'
serial= '0-beta12b'
version ="%d.%02d.%s" % (major,minor,serial)

View File

@ -431,19 +431,19 @@ static int print_seq(Obiview_p i_view, Obiview_p o_view,
if (isnan(tm2))
tm2 = OBIFloat_NA;
// Get the taxon structure
main_taxon = obi_taxo_get_taxon_with_taxid(taxonomy, taxid);
if (main_taxon == NULL)
{
obidebug(1, "\nError reading the taxonomic information of a sequence");
return -1;
}
// Write sequence id
seq_id = obi_get_str_with_elt_idx_and_col_p_in_view(i_view, i_id_column, i_idx, 0);
if (obi_set_str_with_elt_idx_and_col_p_in_view(o_view, o_id_column, o_idx, 0, seq_id) < 0)
{
obidebug(1, "\nError writing the sequence id");
obidebug(1, "\nError writing the sequence id (%s)", seq_id);
return -1;
}
// Get the taxon structure
main_taxon = obi_taxo_get_taxon_with_taxid(taxonomy, taxid);
if (main_taxon == NULL)
{
obidebug(1, "\nError reading the taxonomic information of a sequence, sequence id: %s, taxid: %d", seq_id, taxid);
return -1;
}