Closed gaurabkcutk closed 2 years ago
Were you able to test this? Not all error codes, even some to see if the error code is returned. In Bash, you can do echo $?
after you run the script will give you error code from the last command.
I tested with invalid token and received expected error code 101
(pace-py3.6) [gaurab@e3sm client]$ ./pace-upload3 -pa /home/gaurab/exp-haod776-105119
ERROR: Github authentication failed, Invalid Token.
(pace-py3.6) [gaurab@e3sm client]$ echo $?
101
error code added for the client