Skip to content

Commit

Permalink
WIP: fix condition for error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-manzi committed May 25, 2018
1 parent 32feca8 commit 87eba88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/xrootd/gfal_xrootd_plugin_bringonline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ class PollResponseHandler: public XrdCl::ResponseHandler {
"%s retc=%d value=%s",
tag, &retc, error_string);
//check the error string if it's not empty.
if (retc && (error_string != "")) {
if (retc || (error_string != "")) {
gfal2_log(G_LOG_LEVEL_DEBUG, "Error reported: %s ", error_string);
gfal2_set_error(error, xrootd_domain, EIO, __func__, "%s",error_string);
++finishedCounter;
++errCounter;
} else {
gfal2_log(G_LOG_LEVEL_DEBUG, "No error reported");
gfal2_set_error(error, xrootd_domain, EAGAIN, __func__, "%s","Not online");
Expand Down

0 comments on commit 87eba88

Please sign in to comment.