diff options
Diffstat (limited to 'src/validators/port-range')
-rwxr-xr-x | src/validators/port-range | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/validators/port-range b/src/validators/port-range index abf0b09d5..6e68c8733 100755 --- a/src/validators/port-range +++ b/src/validators/port-range @@ -9,9 +9,11 @@ if __name__ == '__main__': if re.search('[0-9]{1,5}-[0-9]{1,5}', port_range): for tmp in port_range.split('-'): if int(tmp) not in range(1, 65535): + print(f'Error: {port_range} is not a valid port range') sys.exit(1) else: if int(port_range) not in range(1, 65535): + print(f'Error: {port_range} is not a valid port') sys.exit(1) else: sys.exit(2) |