X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fframework%2Fcore%2Fapi_utils%2Futils.js;h=667e7a9b0ae6dd4d6ba82eef1e015edc12134132;hb=08e8a038f222c66ce6f55760a766e90b87b3c50b;hp=3a509646a69b771f2fc83aa54b1670ae2670ecb4;hpb=2da8b7a246ba17396c5bc218a0b7f1685fb8d304;p=osm%2FUI.git diff --git a/skyquake/framework/core/api_utils/utils.js b/skyquake/framework/core/api_utils/utils.js index 3a509646a..667e7a9b0 100644 --- a/skyquake/framework/core/api_utils/utils.js +++ b/skyquake/framework/core/api_utils/utils.js @@ -196,6 +196,9 @@ if (process.env.LOG_REQUESTS) { * @param {Function} res - a handle to the express response function */ var sendErrorResponse = function(error, res) { + if (!error.statusCode) { + console.error('Status Code has not been set in error object: ', error); + } res.status(error.statusCode); res.send(error); }