Skip to content

Instantly share code, notes, and snippets.

@yannickwurm
Created October 17, 2011 07:58
Show Gist options
  • Save yannickwurm/1292170 to your computer and use it in GitHub Desktop.
Save yannickwurm/1292170 to your computer and use it in GitHub Desktop.
alternate error message
"<h1>ERROR: incorrect number of sequences found.</h1
<p>Dear user,</p>
<p><strong>you requested #{sequenceids.length} sequences</strong>
with the following identifiers:  <emph>#{sequenceids.join(', ')}</emph>,
from the following databases:<emph>#{retrieval_databases.join(', ')}</emph>.
</p>
<p/>
<p><strong>But we found #{found_sequences_count} sequences.</strong>.
This is <em>#{found_sequences_count > sequenceids.length ? 'more' : 'less'}</em>
sequences than expected.</p>
<p>This is likely due to a problem with how databases are formatted.
<strong>Please share this text with the person managing this website so
they can resolve the issue.</strong>
</p>
<p/>
<p/>
<p>If sequences were retrieved, you can find them below (but some may be incorrect, so be careful!):</p>
<hr/>"
@yeban
Copy link

yeban commented Oct 17, 2011

ERROR: incorrect number of sequences found.

Dear user,

We have found #{found_sequences_count > sequenceids.length ? 'more' : 'less'} sequence than expected.

This is likely due to a problem with how databases are formatted. Please share this text with the person managing this website so they can resolve the issue.

You requested #{sequenceids.length} sequences with the following identifiers: #{sequenceids.join(', ')}, from the following databases: #{retrieval_databases.join(', ')}. But we found #{found_sequences_count} sequences.

If sequences were retrieved, you can find them below (but some may be incorrect, so be careful!):


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment