Changeset 1821


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

Added HTTP status 500 when getAssays is called without proper parameters

File:
1 edited

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 
Note: See TracChangeset for help on using the changeset viewer.