Ignore:
Timestamp:
07/12/13 17:18:05 (11 years ago)
Author:
sdipsl
Message:

Enhance message when Section or Option do not exist. see #145

File:
1 edited

Legend:

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

    r822 r898  
    204204      ( IGCM_card_PrintOption "$1" "$2" "$3" | grep "not found" ) > ${tmpfile} 
    205205      if [ $( cat ${tmpfile} | wc -l ) -gt 0 ] ; then 
    206         echo "-------------------------------------------" 
    207         echo "!!! Problem with IGCM_card_WriteOption !!!" 
    208         echo "Try to write : " $@ 
    209         echo "You have to correct some script."  
    210         echo "We won't do anything else !" 
    211         exit 1 
     206        IGCM_debug_Print 1 "!!! Issue with IGCM_card_WriteOption !!!" 
     207        IGCM_debug_Print 1 "We tried to write : $@" 
     208        IGCM_debug_Exit "Must check that option $3 in section $2 exist in this file $1" 
     209        IGCM_debug_Verif_Exit 
    212210      fi 
    213211      \rm ${tmpfile} 
Note: See TracChangeset for help on using the changeset viewer.