The dmi_error_peek_last function returns a pointer to the newest error
descriptor in the error queue of context without removing it. The queue is
not modified.
Parameters
context
DMI context.
Return value
Returns a pointer to the newest dmi_error_t in the queue, or nullptr if
context is nullptr or the error queue is empty.