@@ -660,7 +660,7 @@ class Session {
660
660
auto subscriptionList = x.second ;
661
661
if (this ->serviceByServiceNameExchangeMap .find (serviceName) == this ->serviceByServiceNameExchangeMap .end ()) {
662
662
this ->onError (Event::Type::SUBSCRIPTION_STATUS, Message::Type::SUBSCRIPTION_FAILURE,
663
- " please enable service: " + serviceName + " , and the exchanges that you want" );
663
+ " please enable service: " + serviceName + " , and the exchanges that you want for subscriptionList " + toString (subscriptionList) );
664
664
return ;
665
665
}
666
666
if (serviceName == CCAPI_MARKET_DATA) {
@@ -727,7 +727,8 @@ class Session {
727
727
auto serviceName = subscription.getServiceName ();
728
728
CCAPI_LOGGER_DEBUG (" serviceName = " + serviceName);
729
729
if (this ->serviceByServiceNameExchangeMap .find (serviceName) == this ->serviceByServiceNameExchangeMap .end ()) {
730
- this ->onError (Event::Type::FIX_STATUS, Message::Type::FIX_FAILURE, " please enable service: " + serviceName + " , and the exchanges that you want" );
730
+ this ->onError (Event::Type::FIX_STATUS, Message::Type::FIX_FAILURE,
731
+ " please enable service: " + serviceName + " , and the exchanges that you want for subscription " + toString (subscription));
731
732
return ;
732
733
}
733
734
auto exchange = subscription.getExchange ();
@@ -781,7 +782,8 @@ class Session {
781
782
auto serviceName = request.getServiceName ();
782
783
CCAPI_LOGGER_DEBUG (" serviceName = " + serviceName);
783
784
if (this ->serviceByServiceNameExchangeMap .find (serviceName) == this ->serviceByServiceNameExchangeMap .end ()) {
784
- this ->onError (Event::Type::FIX_STATUS, Message::Type::FIX_FAILURE, " please enable service: " + serviceName + " , and the exchanges that you want" );
785
+ this ->onError (Event::Type::FIX_STATUS, Message::Type::FIX_FAILURE,
786
+ " please enable service: " + serviceName + " , and the exchanges that you want for request " + toString (request));
785
787
return ;
786
788
}
787
789
std::map<std::string, std::shared_ptr<Service>>& serviceByExchangeMap = this ->serviceByServiceNameExchangeMap .at (serviceName);
@@ -807,7 +809,9 @@ class Session {
807
809
const auto & serviceName = request.getServiceName ();
808
810
CCAPI_LOGGER_DEBUG (" serviceName = " + serviceName);
809
811
if (this ->serviceByServiceNameExchangeMap .find (serviceName) == this ->serviceByServiceNameExchangeMap .end ()) {
810
- this ->onError (Event::Type::REQUEST_STATUS, Message::Type::REQUEST_FAILURE, " please enable service: " + serviceName + " , and the exchanges that you want" );
812
+ this ->onError (Event::Type::REQUEST_STATUS, Message::Type::REQUEST_FAILURE,
813
+ " please enable service: " + serviceName + " , and the exchanges that you want for websocketOrderEntrySubscriptionCorrelationId " +
814
+ toString (websocketOrderEntrySubscriptionCorrelationId) + " , request = " + toString (request));
811
815
return ;
812
816
}
813
817
const std::map<std::string, std::shared_ptr<Service>>& serviceByExchangeMap = this ->serviceByServiceNameExchangeMap .at (serviceName);
@@ -846,7 +850,7 @@ class Session {
846
850
CCAPI_LOGGER_DEBUG (" serviceName = " + serviceName);
847
851
if (this ->serviceByServiceNameExchangeMap .find (serviceName) == this ->serviceByServiceNameExchangeMap .end ()) {
848
852
this ->onError (Event::Type::REQUEST_STATUS, Message::Type::REQUEST_FAILURE,
849
- " please enable service: " + serviceName + " , and the exchanges that you want" , eventQueuePtr);
853
+ " please enable service: " + serviceName + " , and the exchanges that you want for request " + toString (request) , eventQueuePtr);
850
854
return ;
851
855
}
852
856
std::map<std::string, std::shared_ptr<Service>>& serviceByExchangeMap = this ->serviceByServiceNameExchangeMap .at (serviceName);
0 commit comments