Skip to content

Commit

Permalink
Print the error when the firstRead() or lastRead() fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwalenz committed May 25, 2017
1 parent d074da0 commit b379839
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bogart/AS_BAT_Unitig.H
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ public:
for (uint32 fi=1; (fi < ufpath.size()) && (rd5->position.min() != 0); fi++)
rd5 = &ufpath[fi];

if (rd5->position.min() != 0)
fprintf(stderr, "ERROR: firstRead() in tig %u doesn't start at the start\n", id());
assert(rd5->position.min() == 0);

return(rd5);
Expand All @@ -242,6 +244,8 @@ public:
for (uint32 fi=ufpath.size()-1; (fi-- > 0) && (rd3->position.max() != getLength()); )
rd3 = &ufpath[fi];

if (rd3->position.max() != getLength())
fprintf(stderr, "ERROR: lastRead() in tig %u doesn't end at the end\n", id());
assert(rd3->position.max() == getLength());

return(rd3);
Expand Down

0 comments on commit b379839

Please sign in to comment.