From: eap Date: Wed, 29 Feb 2012 10:18:31 +0000 (+0000) Subject: 0021500: EDF 2134 BLSURFPLUGIN: Error message when a problem occurs with the distene... X-Git-Tag: V6_5_0a1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dff658c9713b9c31014fb28498fdf482571ed2fb;p=plugins%2Fblsurfplugin.git 0021500: EDF 2134 BLSURFPLUGIN: Error message when a problem occurs with the distene licence server --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 0e5c1aa..82511ac 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -2201,7 +2201,8 @@ status_t message_cb(message_t *msg, void *user_data) char *desc; message_get_number(msg, &errnumber); message_get_description(msg, &desc); - if ( errnumber < 0 ) { + string err( desc ); + if ( errnumber < 0 || err.find("license") != string::npos ) { string * error = (string*)user_data; // if ( !error->empty() ) // *error += "\n";