ee-soa-service-manager
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -58,8 +58,8 @@ | ||
if(this._hasController(collection)) { | ||
if (this._hasController(collection)) { | ||
this._controllerList[collection].request(req, res); | ||
} | ||
else { | ||
if(debug) log(collection + " not managed by serviceManager"); | ||
res.send(res.statusCodes.SERVICE_EXCEPTION, {error: 1, msg: collection + " not managed by serviceManager"}); | ||
if (debug) log.warn('The service manager doesn\'t know the controller «'+collection+'». It was not registered by any service!'); | ||
res.send(res.statusCodes.SERVICE_EXCEPTION, {error: 1, msg: 'The service manager doesn\'t know the controller «'+collection+'». It was not registered by any service!'}); | ||
} | ||
@@ -75,5 +75,5 @@ } | ||
else { | ||
// TODO: replace later | ||
if(debug) log(collection + " not managed by serviceManager"); | ||
res.send(res.statusCodes.SERVICE_EXCEPTION, {error: 1, msg: collection + " not managed by serviceManager"}); | ||
// TODO: replace later --> why? | ||
if (debug) log.warn('The service manager doesn\'t know the controller «'+collection+'». It was not registered by any service!'); | ||
res.send(res.statusCodes.SERVICE_EXCEPTION, {error: 1, msg: 'The service manager doesn\'t know the controller «'+collection+'». It was not registered by any service!'}); | ||
//this.emit('request', req, res); | ||
@@ -85,3 +85,3 @@ } | ||
if(!service.isService()) { | ||
throw new Error('try to register a service on serviceManager which is not a service!'); | ||
throw new Error('Attempt to register non service as service on the service manager. Make sure you register only services inheriting from the default service implementation!'); | ||
} | ||
@@ -129,3 +129,3 @@ | ||
, _addController: function(controllerName, service) { | ||
if(this._hasController(controllerName)) throw new Error(controllerName + ' already managed by servicemanager'); | ||
if(this._hasController(controllerName)) throw new Error('The controller «'+controllerName+'» was already registered on the service manager. Every controller can only be registered once in the application!'); | ||
else this._controllerList[controllerName] = service; | ||
@@ -132,0 +132,0 @@ } |
{ | ||
"name" : "ee-soa-service-manager" | ||
, "description" : "Service Manager for the ee-soa framework" | ||
, "version" : "0.1.9" | ||
, "version" : "0.1.10" | ||
, "author" : "Tobias Kneubühler <tobias@joinbox.com> (http://joinbox.com/)" | ||
@@ -6,0 +6,0 @@ , "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9783