From bc08bef2116ed9ba6e4adb767a31650d20292cb5 Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Thu, 27 Apr 2023 16:16:08 +0200 Subject: [PATCH] Get the error message in case license is not valid --- src/HYBRIDPlugin/HYBRIDPlugin_HYBRID.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/HYBRIDPlugin/HYBRIDPlugin_HYBRID.cxx b/src/HYBRIDPlugin/HYBRIDPlugin_HYBRID.cxx index 862a704..26f186d 100644 --- a/src/HYBRIDPlugin/HYBRIDPlugin_HYBRID.cxx +++ b/src/HYBRIDPlugin/HYBRIDPlugin_HYBRID.cxx @@ -2096,9 +2096,12 @@ bool HYBRIDPlugin_HYBRID::storeErrorDescription(const char* logFi if ( errDescription.empty() ) { // no errors found char msgLic1[] = "connection to server failed"; char msgLic2[] = " Dlim "; + char msgLic3[] = "license is not valid"; if ( std::search( &buf[0], bufEnd, msgLic1, msgLic1 + strlen(msgLic1)) != bufEnd || std::search( &buf[0], bufEnd, msgLic2, msgLic2 + strlen(msgLic2)) != bufEnd ) - errDescription << "Licence problems."; + errDescription << "Network license problem."; + else if ( std::search( &buf[0], bufEnd, msgLic3, msgLic3 + strlen(msgLic3)) != bufEnd ) + errDescription << "License is not valid."; else { char msg2[] = "SEGMENTATION FAULT"; -- 2.39.2