Changeset 13806


Ignore:
Timestamp:
2007-01-25T16:13:49+13:00 (17 years ago)
Author:
mdewsnip
Message:

The Unzip class now writes any exception messages to System.out and returns a non-zero value, so the error messages are displayed in the GLI client/applet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/remote/Unzip.java

    r13328 r13806  
    111111        zipFile.close();
    112112    }
    113     catch (ZipException error) {
    114         System.err.println("Error: Unable to open '" + zip_file_path + "'");
    115         System.err.println("This may be caused by the zip file being empty.");
    116         error.printStackTrace();
    117     }
    118113    catch (Exception exception) {
     114        System.out.println("ERROR: " + exception);
    119115        exception.printStackTrace();
     116        System.exit(1);
    120117    }
    121118    }
Note: See TracChangeset for help on using the changeset viewer.