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:
Markus Mäkelä
2017-06-09 13:26:22 +03:00
parent 45afbda100
commit 53d7c57982
3 changed files with 41 additions and 1 deletions

View File

@ -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