From 5659e84a06c1092402ef2f2501e4d2c9339e49ac Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 5 May 2008 06:01:44 +0000 Subject: [PATCH] print output of BLSURF --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 0322ffa..345eb6a 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -592,11 +592,11 @@ status_t surf_fun(real *uv, real *xyz, real*du, real *dv, status_t message_callback(message_t *msg, void *user_data) { integer errnumber = 0; + char *desc; message_get_number(msg, &errnumber); + message_get_description(msg, &desc); if ( errnumber < 0 ) { - char *desc; string * error = (string*)user_data; - message_get_description(msg, &desc); // if ( !error->empty() ) // *error += "\n"; // remove ^A from the tail @@ -605,5 +605,8 @@ status_t message_callback(message_t *msg, void *user_data) len--; error->append( desc, len ); } + else { + cout << desc; + } return STATUS_OK; } -- 2.39.2