Skip to content
Snippets Groups Projects
Commit 231ae8c7 authored by WAUTELET Philippe's avatar WAUTELET Philippe
Browse files

Philippe 28/05/2021: budgets: IO_Mnhname_clean: modify messages

parent fd34cb0c
No related branches found
No related tags found
No related merge requests found
...@@ -869,20 +869,15 @@ subroutine IO_Mnhname_clean( hinname, houtname ) ...@@ -869,20 +869,15 @@ subroutine IO_Mnhname_clean( hinname, houtname )
yresult = Str_replace( yresult, '*', 'star' ) yresult = Str_replace( yresult, '*', 'star' )
yresult = Str_replace( Trim( yresult ), ' ', '_' ) !Trim to prevent problem with spaces at the end of the string yresult = Str_replace( Trim( yresult ), ' ', '_' ) !Trim to prevent problem with spaces at the end of the string
cmnhmsg(1) = 'name (' // Trim( hinname) // ') contains characters not allowed in CF convention'
cmnhmsg(2) = 'Allowed: alphanumeric + underscore'
!Chek corrected name !Chek corrected name
ipos = Verify( Trim( yresult ), 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_' ) ipos = Verify( Trim( yresult ), 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_' )
if ( ipos == 0 ) then if ( ipos == 0 ) then
cmnhmsg(3) = 'Trying to correct => successful' call Print_msg( NVERB_INFO, 'IO', 'IO_Mnhname_clean', "Renaming to comply with CF convention: '" &
cmnhmsg(4) = Trim( hinname ) // '->' // Trim( yresult ) // Trim( hinname ) // "' -> '" // Trim( yresult ) // "'" )
call Print_msg( NVERB_DEBUG, 'IO', 'IO_Mnhname_clean' )
else else
cmnhmsg(3) = 'Trying to correct => FAILED' call Print_msg( NVERB_WARNING, 'IO', 'IO_Mnhname_clean', "Renaming to comply with CF convention FAILED: '" &
cmnhmsg(4) = Trim( hinname ) // '->' // Trim( yresult ) // Trim( hinname ) // "' -> '" // Trim( yresult ) // "'" )
call Print_msg( NVERB_WARNING, 'IO', 'IO_Mnhname_clean' )
end if end if
else else
yresult = Trim( hinname ) yresult = Trim( hinname )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment