Adding hasError method (#45)

This commit is contained in:
Rayner De Los Santos F 2018-01-03 09:04:10 -04:00 • committed by Andreas Rumpf
commit 7aace27355

View file

@ -8,6 +8,8 @@ var
proc hasErrors*(): bool = gerrorCounter != 0
proc hasError*(field: cstring): bool = gerrorMsgs.contains(field) and len(gerrorMsgs[field]) > 0
proc disableOnError*(): cstring = toDisabled(hasErrors())
proc getError*(field: cstring): cstring =