Changeset 894 for trunk


Ignore:
Timestamp:
07/08/13 19:10:51 (11 years ago)
Author:
sdipsl
Message:
  • clearer message when error
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh

    r874 r894  
    7575#D- 
    7676function IGCM_debug_CallStack { 
    77   #echo 
    78   #echo "!!!!!!!!!!!!!!!!!!!!!!!!!!" 
    79   #echo "!! IGCM_debug_CallStack !!" 
    80   #echo "!------------------------!" 
    81   #echo 
    8277  if ( $DEBUG_debug ) ; then 
    8378    # La pile d'appels est affichée de la plus vieille à la plus récente  
     
    193188    #  
    194189    if ( ${RandomError} ) ; then 
    195       if [ $((RANDOM%10000)) -le 0 ] ; then 
     190      if [ $((RANDOM%10000)) -le 10 ] ; then 
    196191        IGCM_debug_Print 1 "A random error has been triggered" 
    197192        echo "RANDOM ERROR" >> ${StackFileLocation}/stack 
     
    337332  IGCM_debug_PushStack "IGCM_debug_Exit" 
    338333  echo "IGCM_debug_Exit : " "${@}" 
    339   #IGCM_debug_CallStack 
     334  echo  
     335  echo "!!!!!!!!!!!!!!!!!!!!!!!!!!" 
     336  echo "!!   ERROR TRIGGERED    !!"  
     337  echo "!!   EXIT FLAG SET      !!"  
     338  echo "!------------------------!"  
     339  echo  
     340  IGCM_debug_CallStack 
    340341  ExitFlag=true 
    341342  IGCM_debug_PopStack "IGCM_debug_Exit" 
     
    351352    if [ X${TaskType} != Xchecking ] ; then 
    352353      IGCM_card_WriteOption ${SUBMIT_DIR}/run.card Configuration PeriodState "Fatal" 
    353       echo "IGCM_debug_Verif_Exit : Something wrong happened." 
     354      echo "IGCM_debug_Verif_Exit : Something wrong happened previously." 
     355      echo "IGCM_debug_Verif_Exit : ERROR and EXIT keyword will help find out where." 
    354356      echo "                        EXIT THE JOB." 
    355357      echo 
Note: See TracChangeset for help on using the changeset viewer.