The python module that am using has list of error codes like the following: -
DRV_ERROR_CODES = 20001
DRV_SUCCESS = 20002
DRV_VXDNOTINSTALLED = 20003
DRV_ERROR_SCAN = 20004
DRV_ERROR_CHECK_SUM = 20005
DRV_ERROR_FILELOAD = 20006
DRV_UNKNOWN_FUNCTION = 20007
...
I currently just compare the return value against the success error code in order check if the process has been successful.
if atmcd.DRV_SUCCESS==ret:
I would like to use the return value and output what exactly caused the error (e.g. the return value was 2004, therefore the script will print that there was a scan error). Is there a a way to compare against all these variables? Is there a better way of finding the error?