From 94208f682ffb9ecbfa711e28fe06b9f1b6c01201 Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Thu, 27 Apr 2023 13:12:17 +0200 Subject: [PATCH] Get the error message in case license is not valid --- src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"; -- 2.39.2