Skip to content

Commit

Permalink
better error message for proteins missing from FASTA files
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-combe committed Nov 3, 2017
1 parent 83647f0 commit d929f19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build/crosslinkviewer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/model/Match.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ Match.prototype.associateWithLink = function (p1ID, p2ID, res1, res2, //followin
if (link === undefined) {
if (fromProt === undefined || toProt === undefined) {
alert("Something has gone wrong; a link has been added before a protein it links to. " +
p1ID + "-" + p2ID);
p1ID + "-" + p2ID + " Are both of these IDs in your FASTA file?");
}
link = new ProteinLink(proteinLinkID, fromProt, toProt, this.controller);
this.controller.proteinLinks.set(proteinLinkID, link);
Expand Down

0 comments on commit d929f19

Please sign in to comment.