Project

General

Profile

« Previous | Next » 

Revision 512

Added by bojilova about 24 years ago

small fix for exception when srbMaster is not running

View differences:

src/edu/ucsb/nceas/metacat/AuthMcat.java
255 255
      
256 256
    // check if successfull
257 257
    if ( srbconn == 0 ) {
258
      throw new RemoteException("The SRB Server is not running or it is busy now");
258
      throw new 
259
      RemoteException("The SRB Server is not running or it is busy now");
259 260
    } else if ( srbconn < 0 ) {
260 261
      try {
261 262
        rmicon.restart();
262 263
      } catch (Exception rmie) {}
264
      if ( srbconn == -1003 ) {
265
        throw new 
266
        RemoteException("SrbJavaGlue.c: Connection to srbMaster failed.");
267
      }
263 268
      return srbconn;
264 269
    }
265 270

  

Also available in: Unified diff