Skip to content

Instantly share code, notes, and snippets.

View yannickwurm's full-sized avatar
😜

Yannick Wurm yannickwurm

😜
View GitHub Profile
@yannickwurm
yannickwurm / gist:1292170
Created October 17, 2011 07:58
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>