even more strict isNil handling for strings/seqs in order to detect bugs
This commit is contained in:
parent
9047c3f582
commit
64517445ea
36 changed files with 193 additions and 245 deletions
|
|
@ -232,7 +232,7 @@ template run_custom_proc(parsed_parameter: Tparsed_parameter,
|
|||
if not custom_validator.isNil:
|
||||
try:
|
||||
let message = custom_validator(parameter, parsed_parameter)
|
||||
if not message.isNil and message.len > 0:
|
||||
if message.len > 0:
|
||||
raise_or_quit(ValueError, ("Failed to validate value for " &
|
||||
"parameter $1:\n$2" % [escape(parameter), message]))
|
||||
except:
|
||||
|
|
|
|||
|
|
@ -7,3 +7,4 @@ path = "dependencies/genpacket"
|
|||
path = "enet_server"
|
||||
debugger = off
|
||||
warning[SmallLshouldNotBeUsed] = off
|
||||
nilseqs = on
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue