From 6ae72d42252cb1b2a24e87aa43c2395599289a1e Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 29 Sep 2023 10:30:19 +0200 Subject: [PATCH] Updated exit codes --- RNS/Utilities/rnprobe.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RNS/Utilities/rnprobe.py b/RNS/Utilities/rnprobe.py index dd0e300..8a299c6 100644 --- a/RNS/Utilities/rnprobe.py +++ b/RNS/Utilities/rnprobe.py @@ -84,7 +84,7 @@ def program_setup(configdir, destination_hexhash, size=None, full_name = None, v if time.time() > _timeout: print("\r \rPath request timed out") - exit(2) + exit(1) server_identity = RNS.Identity.recall(destination_hash) @@ -101,7 +101,7 @@ def program_setup(configdir, destination_hexhash, size=None, full_name = None, v probe.pack() except OSError: print("Error: Probe packet size of "+str(len(probe.raw))+" bytes exceed MTU of "+str(RNS.Reticulum.MTU)+" bytes") - exit(1) + exit(3) receipt = probe.send() @@ -174,6 +174,7 @@ def program_setup(configdir, destination_hexhash, size=None, full_name = None, v else: print("\r \rProbe timed out") + exit(2)