Made exit codes more specific to their errors

Former-commit-id: 62c004c84333a8b8645ea3247fdb56c1509a36f9 [formerly 33f7330886]
Former-commit-id: 0d849ab1792d4c960cf632f75a28feba5610f57e
This commit is contained in:
2022-10-26 13:32:23 -04:00
parent b1fd934b96
commit d796c48ede
2 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ def get_profile(_profile_dir): # returns a list of data read from a sshync job
except (FileNotFoundError, IndexError):
print('\n\u001b[38;5;9merror: the profile does not exist or is corrupted.\u001b[0m\n')
_profile_data = None
s_exit(1)
s_exit(3)
# extract data from profile
_user = _profile_data[0].rstrip()
_ip = _profile_data[1].rstrip()