Changeset 2212


Ignore:
Timestamp:
Apr 5, 2012, 6:36:41 PM (5 years ago)
Author:
work@…
Message:
  • updated api
Location:
trunk/grails-app
Files:
2 edited

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