Changeset 2212

Show
Ignore:
Timestamp:
05-04-12 18:36:41 (2 years ago)
Author:
work@…
Message:

- updated api

Location:
trunk/grails-app
Files:
2 modified

Legend:

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

    r2211 r2212  
    301301                } 
    302302            } catch (Exception e) { 
     303                println "getMeasurementDataForAssay exception: ${e.getMessage()}" 
    303304                response.sendError(500, "module '${assay.module}' does not properly implement getMeasurementData REST specification (${e.getMessage()})") 
    304305            } 
  • trunk/grails-app/services/api/ApiService.groovy

    r2211 r2212  
    179179            response.sendError(401, "Unauthorized") 
    180180        } else if (!item) { 
    181             // no results 
     181            // no results, invalid 'item' 
    182182            response.sendError(400, "No such ${itemName}") 
    183183        } else if (item.respondsTo('canRead') && !item.canRead(user)) {