add quotes to error messages
All checks were successful
continuous-integration/drone/tag Build is passing
All checks were successful
continuous-integration/drone/tag Build is passing
This commit is contained in:
parent
93954add96
commit
8657f3c13d
@ -1,6 +1,6 @@
|
|||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
author = "Joseph Montanaro"
|
author = "Joseph Montanaro"
|
||||||
description = "Passphrase generator and dictionary builder"
|
description = "Passphrase generator and dictionary builder"
|
||||||
license = "none"
|
license = "none"
|
||||||
|
@ -62,7 +62,7 @@ proc parseInput(): (int, int) =
|
|||||||
try:
|
try:
|
||||||
length = parseInt(params[0])
|
length = parseInt(params[0])
|
||||||
except ValueError:
|
except ValueError:
|
||||||
quit(params[0] & " is not a valid passphrase length.", 1)
|
quit('"' & params[0] & "\" is not a valid passphrase length.", 1)
|
||||||
|
|
||||||
if params.len > 1:
|
if params.len > 1:
|
||||||
try:
|
try:
|
||||||
@ -70,7 +70,7 @@ proc parseInput(): (int, int) =
|
|||||||
if dictSize < 100 or dictSize > dict.len:
|
if dictSize < 100 or dictSize > dict.len:
|
||||||
quit("Dictionary size must be between 100 and " & $dict.len, 1)
|
quit("Dictionary size must be between 100 and " & $dict.len, 1)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
quit(params[1] & " is not a valid dictionary size.", 1)
|
quit('"' & params[1] & "\" is not a valid dictionary size.", 1)
|
||||||
|
|
||||||
result = (length, dictSize)
|
result = (length, dictSize)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user