# man > dmmp_last_error_msg(3)

[dmmp_last_error_msg(3)](https://www.chedong.com/phpMan.php/man/dmmplasterrormsg/3/markdown)      Device Mapper Multipath API - libdmmp Manual      [dmmp_last_error_msg(3)](https://www.chedong.com/phpMan.php/man/dmmplasterrormsg/3/markdown)



## NAME
       dmmp_last_error_msg - Retrieves the last error message.

## SYNOPSIS
       **const** **char** ***** **dmmp**___**last**___**error**___**msg** **(struct** **dmmp**___**context** *****_ctx_**);**

## ARGUMENTS
       ctx         Pointer  of 'struct dmmp_context'.  If this pointer is NULL, your program will be
                   terminated by assert.

## DESCRIPTION
       Retrieves the last error message.

## RETURN
       const char *. No need to free this memory,  the  resources  will  get  freed  when  **dmmp**___**con**‐‐
       **text**___**free**.



March 2018                               dmmp_last_error_msg                  [dmmp_last_error_msg(3)](https://www.chedong.com/phpMan.php/man/dmmplasterrormsg/3/markdown)
