Changeset 230


Ignore:
Timestamp:
Feb 14, 2007, 12:43:19 PM (15 years ago)
Author:
mbayer
Message:

minor changes to comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/uk/ac/scri/batchimporter/src/sbrn/base/BatchDataImporter.java

    r226 r230  
    137137      boolean importSuccess = batchDataImport.importData();
    138138
    139       //set the response message as appropriate
     139      //set the success message if appropriate
    140140      if(importSuccess)
    141141        response.setDone("Plugin ended successfully");
    142       else
    143         response.setDone("Plugin failed");
     142
    144143    }
    145144    catch (Throwable t)
    146145    {
    147       // All exceptions must be catched and sent back
     146      // All exceptions must be caught and sent back
    148147      // using the response object
    149148      response.setError(t.getMessage(), Arrays.asList(t));
     149      response.setDone("Plugin failed: " + t.getMessage());
    150150    }
    151151    finally
    152152    {
     153
    153154      // IMPORTANT!!! Make sure opened connections are closed
    154155      if (dc != null)
Note: See TracChangeset for help on using the changeset viewer.