
If a module command returns a json object, it will always be returned to the caller, irrespective of whether the command itself succeeded or not. Otherwise, if the command failed and if the module command has set an error message, that error message will be returned as a json object containing the error message.