Skip to content

Commit

Permalink
better error messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-joe-wirth committed Aug 13, 2024
1 parent 6ddc93e commit 474eaee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/Parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def __parseArgs(self) -> None:
ERR_MSG_5 = 'invalid format'
ERR_MSG_6 = 'can only specify one primer length or a range (min,max)'
ERR_MSG_7 = 'primer lengths are not integers'
ERR_MSG_8 = 'minimum primer length is 10bp'
ERR_MSG_8 = 'minimum primer length is'
ERR_MSG_9 = 'must specify a range of GC values (min,max)'
ERR_MSG_10 = 'gc values are not numeric'
ERR_MSG_11 = 'must specify a range of Tm values (min, max)'
Expand Down Expand Up @@ -564,7 +564,7 @@ def printHelp():

# make sure that the minimum is within the allowed range
if min(primerRange) < Parameters._MIN_LEN:
raise ValueError(ERR_MSG_8)
raise ValueError(f"{ERR_MSG_8} {Parameters._MIN_LEN} bp")

# save values
self.minLen = min(primerRange)
Expand Down

0 comments on commit 474eaee

Please sign in to comment.