ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/build/checkprod.py
(Generate patch)

Comparing build/checkprod.py (file contents):
Revision 1.2 by arta, Fri Jan 30 04:10:33 2015 UTC vs.
Revision 1.3 by arta, Fri Jan 30 22:59:39 2015 UTC

# Line 16 | Line 16 | WAYSTATION_USER = 'arta'
16   WAYSTATION_DOMAIN = 'sun.stanford.edu'
17  
18   RV_SUCCESS = 0
19 < RV_ERROR_MAIL = -1
19 > RV_ERROR_MAIL = 1
20 > RV_ERROR_ARGS = 2
21  
22   # This class changes the current working directory, and restores the original working directory when
23   # the context is left.
# Line 77 | Line 78 | def getArgs():
78          msg = exc.args[1]
79  
80          if etype == 'CmdlParser-ArgUnrecognized' or etype == 'CmdlParser-ArgBadformat' or etype == 'CmdlParser':
81 <            raise Exception('getArgs', 'Unable to parse command-line arguments.')
81 >            raise Exception('getArgs', 'Unable to parse command-line arguments.', RV_ERROR_ARGS)
82          else:
83              raise # Re-raise.
84  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines