From dff658c9713b9c31014fb28498fdf482571ed2fb Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 29 Feb 2012 10:18:31 +0000 Subject: [PATCH] 0021500: EDF 2134 BLSURFPLUGIN: Error message when a problem occurs with the distene licence server --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"; -- 2.39.2