Changeset 14818


Ignore:
Timestamp:
2007-11-19T11:26:54+13:00 (15 years ago)
Author:
anna
Message:

when creating new collection fails, pass the name of the new collection to CollectionManager.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/shell/GShell.java

    r14305 r14818  
    165165        if(line_buffer.length() > 0) {
    166166        String line = line_buffer.toString();
    167         // DebugStream.println("* " + line + " *");
     167        // DebugStream.println("* " + line + " *");     
    168168        fireMessage(type, typeAsString(type) + "> " + line, status, bos);
    169169        line_buffer = new StringBuffer();
     
    242242       
    243243        InputStreamReader eisr = new InputStreamReader( prcs.getErrorStream(), "UTF-8" );
    244         InputStreamReader stdisr = new InputStreamReader( prcs.getInputStream(), "UTF-8"  );
     244        InputStreamReader stdisr = new InputStreamReader( prcs.getInputStream(), "UTF-8"  );       
    245245   
    246246        StringBuffer eline_buffer = new StringBuffer();
     
    545545        concerned = null;
    546546    }
     547   
     548    String msg = "";
     549    // If we are creating collection and have trouble with permissions, we need more messages
     550    if(status == ERROR && type == GShell.NEW){
     551      msg = args[args.length-1];
     552    }
    547553    // And firing off an event
    548     GShellEvent event = new GShellEvent(this, 0, type, "", status);
     554    GShellEvent event = new GShellEvent(this, 0, type, msg, status);
    549555    Object[] concerned = listeners.getListenerList();
    550556    for(int i = 0; i < concerned.length ; i++) {
Note: See TracChangeset for help on using the changeset viewer.