summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvslobodyanik <vslobodyanik@luxoft.com>2014-07-07 13:07:54 +0100
committervslobodyanik <vslobodyanik@luxoft.com>2014-07-07 13:07:54 +0100
commit0737681edca9f562ddc93d72b95e6d3d9062533b (patch)
tree91c38cc9348541a32a0f733d497b09c845fd4d1d
parent4f3beb42ac58ec521429bf5275fae349b70cc827 (diff)
downloadsdl_core-0737681edca9f562ddc93d72b95e6d3d9062533b.tar.gz
APPLINK-7911:SDL respond with "UNSUPPORTED_RESOURCE"
-rw-r--r--src/components/application_manager/src/commands/mobile/speak_request.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/components/application_manager/src/commands/mobile/speak_request.cc b/src/components/application_manager/src/commands/mobile/speak_request.cc
index 0f0064b1f1..29c0e6cc9e 100644
--- a/src/components/application_manager/src/commands/mobile/speak_request.cc
+++ b/src/components/application_manager/src/commands/mobile/speak_request.cc
@@ -105,12 +105,11 @@ void SpeakRequest::ProcessTTSSpeakResponse(
const char* return_info = NULL;
- if (result) {
- if (hmi_apis::Common_Result::UNSUPPORTED_RESOURCE ==
- static_cast<hmi_apis::Common_Result::eType>(result_code)) {
- result_code = mobile_apis::Result::WARNINGS;
- return_info = std::string("Unsupported phoneme type sent in a prompt").c_str();
- }
+ if (hmi_apis::Common_Result::UNSUPPORTED_RESOURCE ==
+ static_cast<hmi_apis::Common_Result::eType>(result_code)) {
+ result_code = mobile_apis::Result::WARNINGS;
+ return_info = std::string(
+ "Unsupported phoneme type sent in a prompt").c_str();
}
SendResponse(result, static_cast<mobile_apis::Result::eType>(result_code),