Remove stack for debug environment option

This commit is contained in:
Raul Ochoa 2015-04-14 16:44:03 +02:00
parent 84f579f0ec
commit 0c578a193c

View File

@ -447,9 +447,6 @@ TemplateMapsController.prototype.finish_instantiation = function(err, response,
if ( ! _.isUndefined(err.http_status) ) { if ( ! _.isUndefined(err.http_status) ) {
statusCode = err.http_status; statusCode = err.http_status;
} }
if(global.environment.debug) {
response.stack = err.stack;
}
this.app.sendError(res, response, statusCode, 'POST INSTANCE TEMPLATE', err); this.app.sendError(res, response, statusCode, 'POST INSTANCE TEMPLATE', err);
} else { } else {
this.app.sendResponse(res, [response, 200]); this.app.sendResponse(res, [response, 200]);