Changeset 786


Ignore:
Timestamp:
04/04/13 16:12:39 (9 years ago)
Author:
ramonb
Message:
  • print FATAL error's in stead of debug_msg 0: else will not show in shell
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.4/jobmond/jobmond.py

    r785 r786  
    604604                except ConfigParser.NoOptionError:
    605605
    606                     debug_msg( 0, "FATAL ERROR: GMETRIC_BINARY not set and not in $PATH" )
     606                    print "FATAL ERROR: GMETRIC_BINARY not set and not in $PATH"
    607607                    sys.exit( 1 )
    608608
     
    622622            BATCH_API    = api_guess
    623623        else:
    624             debug_msg( 0, "FATAL ERROR: BATCH_API not set and can't make guess" )
     624            print "FATAL ERROR: BATCH_API not set and can't make guess"
    625625            sys.exit( 1 )
    626626
     
    678678            if incompatible:
    679679
    680                 debug_msg( 0, 'Gmetric version not compatible, please upgrade to at least 3.4.0' )
     680                print 'Ganglia/Gmetric version not compatible, please upgrade to at least 3.4.0'
    681681                sys.exit( 1 )
    682682
     
    18991899        except ImportError:
    19001900
    1901             debug_msg( 0, "FATAL ERROR: BATCH_API set to 'pbs' but python module 'pbs_python' is not installed" )
     1901            print "FATAL ERROR: BATCH_API set to 'pbs' but python module 'pbs_python' is not installed"
    19021902            sys.exit( 1 )
    19031903
     
    19151915            from lsfObject import lsfObject
    19161916        except:
    1917             debug_msg(0, "fatal error: BATCH_API set to 'lsf' but python module is not found or installed")
     1917            print "FATAL ERROR: BATCH_API set to 'lsf' but python module is not found or installed"
    19181918            sys.exit( 1)
    19191919
     
    19211921
    19221922    else:
    1923         debug_msg( 0, "FATAL ERROR: unknown BATCH_API '" + BATCH_API + "' is not supported" )
     1923        print "FATAL ERROR: unknown BATCH_API '" + BATCH_API + "' is not supported"
    19241924
    19251925        sys.exit( 1 )
Note: See TracChangeset for help on using the changeset viewer.