summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim-Nexty <35795928+zhouxin627@users.noreply.github.com>2020-07-01 02:56:14 +0900
committerGitHub <noreply@github.com>2020-06-30 13:56:14 -0400
commit0330f350872671f59e66394a54416cf654c72dbb (patch)
tree618dc65a1b45e06909e2f074c0b94d9c0b2bd331
parentab5604731c6445776081f8f9e053a031545f9167 (diff)
downloadsdl_core-0330f350872671f59e66394a54416cf654c72dbb.tar.gz
Fix 3119 bug:App gets REJECTED instead of UNSUPPORTED_RESOURCE to ChangeRegistration with not supported language (#3427)
Co-authored-by: zhangwenqin <zhangwenqin@iauto.com>
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/change_registration_request.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/change_registration_request.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/change_registration_request.cc
index 50217a9c8a..19584fb055 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/change_registration_request.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/change_registration_request.cc
@@ -177,7 +177,7 @@ void ChangeRegistrationRequest::Run() {
IsLanguageSupportedByVR(language) &&
IsLanguageSupportedByTTS(language))) {
LOG4CXX_ERROR(logger_, "Language is not supported");
- SendResponse(false, mobile_apis::Result::REJECTED);
+ SendResponse(false, mobile_apis::Result::UNSUPPORTED_RESOURCE);
return;
}