Skip to content

Commit

Permalink
make error message more informative
Browse files Browse the repository at this point in the history
When one passes a float, let's say -m=2.5G the only message that is returned is: "sambamba-sort: couldn't parse ", which is not very informative, as this someone may blame the input BAM file and spend some time trying to figure out what is wrong with it. The updated  error message points directly into the point saving users time.
  • Loading branch information
EwaMarek committed Sep 18, 2019
1 parent 8fc9a37 commit fc3c177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sambamba/sort.d
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ size_t parseMemory(string str) {
case "GB":
return sz * 1_000_000_000;
default:
throw new Exception("couldn't parse ", initial_str);
throw new Exception("couldn't parse --memory-limit option ", initial_str);
}
}

Expand Down

0 comments on commit fc3c177

Please sign in to comment.