fdoc

subroutinefailprivate

subroutine fail(c, message)

Record the first problem.

Arguments

NameTypeIntentAttributesDescription
ctype(fypp_t)inout

the state

messagecharacter(len=*)in

what went wrong

Called by

Source

Show the code
subroutine fail(c, message)
    type(fypp_t), intent(inout) :: c            !! the state
    character(len=*), intent(in) :: message     !! what went wrong

    if (.not. allocated(c%error)) c%error = message
end subroutine fail