diff options
author | Yana Chernysheva (GitHub) <59469418+ychernysheva@users.noreply.github.com> | 2020-10-23 17:59:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-23 10:59:35 -0400 |
commit | 3a9dd1a661bef9d013baa3fca6f9fcc25b596c54 (patch) | |
tree | 0c2b0598e134ba68ac239fe730626333278284c6 /src/components/connection_handler/src | |
parent | 93d12eb664afd667379741fabda47d177893bbb9 (diff) | |
download | sdl_core-3a9dd1a661bef9d013baa3fca6f9fcc25b596c54.tar.gz |
Add missed NACK reasons (#3545)
* Add missed NACK reasons, update UTs and add minor changes
Diffstat (limited to 'src/components/connection_handler/src')
-rw-r--r-- | src/components/connection_handler/src/connection_handler_impl.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/connection_handler/src/connection_handler_impl.cc b/src/components/connection_handler/src/connection_handler_impl.cc index 8cefa390e8..e3ab3db324 100644 --- a/src/components/connection_handler/src/connection_handler_impl.cc +++ b/src/components/connection_handler/src/connection_handler_impl.cc @@ -520,7 +520,7 @@ void ConnectionHandlerImpl::OnSessionStartedCallback( context, rejected_params, "Cannot start " + - std::string(is_protected ? "a protected" : " an unprotected") + + std::string(is_protected ? "a protected" : "an unprotected") + " service of type " + std::to_string(service_type) + ". " + err_reason); return; @@ -558,7 +558,8 @@ void ConnectionHandlerImpl::OnSessionStartedCallback( void ConnectionHandlerImpl::NotifyServiceStartedResult( uint32_t session_key, bool result, - std::vector<std::string>& rejected_params) { + std::vector<std::string>& rejected_params, + const std::string& reason) { SDL_LOG_AUTO_TRACE(); protocol_handler::SessionContext context; @@ -599,7 +600,7 @@ void ConnectionHandlerImpl::NotifyServiceStartedResult( } if (protocol_handler_ != NULL) { - protocol_handler_->NotifySessionStarted(context, rejected_params); + protocol_handler_->NotifySessionStarted(context, rejected_params, reason); } } |