Changeset 34017

Show
Ignore:
Timestamp:
12.03.2020 13:41:25 (3 weeks ago)
Author:
kjdon
Message:

add error element, don't just print a message to log, if we have specified an invalid module (collection)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/MessageRouter.java

    r33387 r34017  
    345345                    else 
    346346                    { 
    347                         logger.error("MessageRouter Error: request has illegal module name in:\n" + XMLConverter.getString(req)); 
     347                      GSXML.addError(mainResult, "There is no collection named '"+obj+"'.", GSXML.ERROR_TYPE_INVALID_ID); 
     348                      logger.error("MessageRouter Error: request has illegal module name in:\n" + XMLConverter.getString(req)); 
    348349                    } 
    349350                }