Prints error message in specific format.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | error |
subroutine s_err_print(error) ! ==== Description !! Prints error message in specific format. ! ==== Declarations character(len=*), intent(in) :: error character(len=256) :: fstring ! ==== Instructions ! fstring = trim(error) // " (" // trim(f_utl_r2c(c_sentinel_r)) // ")" fstring = fg_color_magenta // "[fsml error] " // style_reset // & trim(error) // fg_color_blue // " (" //& & trim(f_utl_r2c(c_sentinel_r)) // ")" // style_reset write(std_e, '(A)') trim(fstring) end subroutine s_err_print