Make a string containing the error code and exit reason. This is kept minimal to make it easier for tests to parse.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(exit_code), | intent(in) | :: | self |
function create_message(self)
implicit none
class(exit_code), intent(in) :: self
character(len=exit_string_len) :: create_message
write (create_message,'(I2.1," ",A)') self%code, trim(self%message)
end function create_message