Remove stack for debug environment option
This commit is contained in:
parent
84f579f0ec
commit
0c578a193c
@ -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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user