Project

General

Profile

« Previous | Next » 

Revision 1102

Added by Jing Tao over 22 years ago

Add the code to handle error in the respone for a update request.

View differences:

src/edu/ucsb/nceas/metacat/ReplicationHandler.java
179 179
        +util.getLocalReplicationServerName()+"&action=update");
180 180
        //System.out.println("Sending Message: " + u.toString());
181 181
        String result = MetacatReplication.getURLContent(u);
182
        //check if result have error or not
183
        if (result.indexOf("error")!=-1)
184
        {
185
          continue;
186
        }
182 187
        responses.add(result);
183 188
      }
184 189
      

Also available in: Unified diff