LoggerD("Checking remote port of %s: %s", remoteMessagePortName.c_str(),
portCheck ? "true" : "false");
+ LoggerD("Error code: -0x%X", -ret);
if (ret == MESSAGE_PORT_ERROR_NONE) {
if (portCheck) {
ReportError(
NotFoundException("The port of the target application is not found"),
out);
+ } else if (ret == MESSAGE_PORT_ERROR_PORT_NOT_FOUND) {
+ ReportError(
+ NotFoundException("The port of the target application is not found"),
+ out);
} else {
ReportError(UnknownException("Unknown Error"), out);
}
ret = message_port_check_trusted_remote_port
(appId.c_str(), remoteMessagePortName.c_str(), &portCheck);
- LoggerD("Checking trusted remoteport of %s:%s",
+ LoggerD("Checking trusted remote port of %s: %s",
remoteMessagePortName.c_str(), portCheck ? "true":"false");
+ LoggerD("Error code: -0x%X", -ret);
if (ret == MESSAGE_PORT_ERROR_NONE) {
if (portCheck) {
ReportError(
NotFoundException("The port of the target application is not found"),
out);
+ } else if (ret == MESSAGE_PORT_ERROR_PORT_NOT_FOUND) {
+ ReportError(
+ NotFoundException("The port of the target application is not found"),
+ out);
} else if (ret == MESSAGE_PORT_ERROR_CERTIFICATE_NOT_MATCH) {
ReportError(
UnknownException(