Unverified Commit bedd9888 authored by Shashank Budhanuru Ramaraju's avatar Shashank Budhanuru Ramaraju Committed by GitHub
Browse files

Merge pull request #163 from Ensembl/dev/otf-error-msg

Change error message when sequence not found
parents 8d338b95 38b6a70b
......@@ -268,7 +268,13 @@ sub _fetch_sequences {
$seq->type($type);
$seq->name($acc);
} else {
$self->_add_missing_warning($acc, "unknown accession or illegal evidence type");
if($seq_type eq 'dna') {
$self->_add_missing_warning($acc, "No sequence fetched from DNA database, Would you try Protein sequence type to fetch from Protein database ?");
} elsif($seq_type eq 'protein') {
$self->_add_missing_warning($acc, "No sequence fetched from Protein database, Would you try DNA sequence type to fetch from DNA database ?");
} else {
$self->_add_missing_warning($acc, "unknown accession or illegal evidence type");
}
}
# my ($type, $full) = @{$self->_acc_type_full($acc)};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment