print out server errors
authorMiloš Mulač <mulac@civ.zcu.cz>
Fri, 14 Mar 2008 15:09:16 +0000 (15:09 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Fri, 14 Mar 2008 15:09:16 +0000 (15:09 +0000)
org.glite.lb.client/src/notify.c

index 64f5f58..bd5b1c5 100644 (file)
@@ -272,6 +272,10 @@ receive_err:
                if (stat.state != EDG_WLL_JOB_UNDEF) edg_wll_FreeStatus(&stat);
                if (nid) edg_wll_NotifIdFree(nid);
                edg_wll_NotifCloseFd(ctx);
+
+               if (edg_wll_Error(ctx,&errt,&errd))
+                       fprintf(stderr, "%s: %s (%s)\n", me, errt, errd);
+
                return EX_IOERR;
        }
 /* UNIMPL