MXS-1220: Add error descriptions to REST API module commands
The module command calls that fail can now display additional information in the form of an error object.
This commit is contained in:
@ -265,6 +265,12 @@ void modulecmd_set_error(const char *format, ...);
|
||||
*/
|
||||
const char* modulecmd_get_error();
|
||||
|
||||
/**
|
||||
* @brief Get JSON formatted error
|
||||
*
|
||||
* @return The error or NULL if no errors have occurred
|
||||
*/
|
||||
json_t* modulecmd_get_json_error();
|
||||
|
||||
/**
|
||||
* @brief Call a function for each command
|
||||
|
Reference in New Issue
Block a user