Changeset 1821

Show
Ignore:
Timestamp:
06-05-11 17:42:27 (3 years ago)
Author:
robert@…
Message:

Added HTTP status 500 when getAssays is called without proper parameters

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/RestController.groovy

    r1813 r1821  
    330330                def validCall = CommunicationManager.hasValidParams( params, "consumer" ) 
    331331                if( !validCall ) { 
     332                        response.status = 500; 
    332333                        render "Error. Wrong or insufficient parameters." as JSON 
    333334                        return