Changeset 894 in lmdz_wrf


Ignore:
Timestamp:
Jun 19, 2016, 1:03:06 PM (9 years ago)
Author:
lfita
Message:

Giving the right '-1' value to some error checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r873 r894  
    13711371        print errormsg
    13721372        print '  ' + fname + ": original file '" + origfile + "' does not exist !!"
    1373         quit()
     1373        quit(-1)
    13741374
    13751375    if not os.path.isfile(addfile):
    13761376        print errormsg
    13771377        print '  ' + fname + ": adding file '" + addfile + "' does not exist !!"
    1378         quit()
     1378        quit(-1)
    13791379   
    13801380    ofile = open(origfile, 'r')
     
    13891389        print errormsg
    13901390        print '  ' + fname + ": adding sign '" + addsign + "' not found !!"
    1391         quit()
     1391        quit(-1)
    13921392    print '  '+ fname + ': found', Nfound," times sign '" + addsign + "' "
    13931393
Note: See TracChangeset for help on using the changeset viewer.