From: Christophe Bourcier Date: Thu, 27 Apr 2023 11:12:17 +0000 (+0200) Subject: Get the error message in case license is not valid X-Git-Tag: V9_11_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=94208f682ffb9ecbfa711e28fe06b9f1b6c01201;p=plugins%2Fghs3dplugin.git Get the error message in case license is not valid --- diff --git a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx index ba449ce..2a29956 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx @@ -2650,9 +2650,12 @@ GHS3DPlugin_GHS3D::getErrorDescription(const char* logFile, if ( errDescription.empty() ) { // no errors found char msgLic1[] = "connection to server failed"; char msgLic2[] = " Dlim "; + char msgLic3[] = "license is not valid"; if ( search( &buf[0], bufEnd, msgLic1, msgLic1 + strlen(msgLic1)) != bufEnd || search( &buf[0], bufEnd, msgLic2, msgLic2 + strlen(msgLic2)) != bufEnd ) - errDescription << "Licence problems."; + errDescription << "Network license problem."; + else if ( search( &buf[0], bufEnd, msgLic3, msgLic3 + strlen(msgLic3)) != bufEnd ) + errDescription << "License is not valid."; else { char msg2[] = "SEGMENTATION FAULT";