Skip to content

Commit 7b40596

Browse files
author
Juliya Smith
committed
better error handlin
1 parent 19c716b commit 7b40596

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

c42seceventcli/aed/args.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def verify_username_arg(self):
119119

120120
def verify_destination_args(self):
121121
self.destination_type = self.destination_type.lower()
122+
self.destination_port = int(self.destination_port)
122123
if self.destination_type == "stdout" and self.destination is not None:
123124
msg = (
124125
"Destination '{0}' not applicable for stdout. "

c42seceventcli/aed/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def _get_logger(formatter, service_name, destination_args):
8888
print(repr(ex))
8989
if ex.errno == 61:
9090
_print_server_args(destination_args)
91-
return
91+
exit(1)
9292

9393
print("File path: {0}.".format(destination_args.destination))
9494
exit(1)

0 commit comments

Comments
 (0)