Now we report all kinds of error during DEPLOY. This helps devs to figure out what went wrong.

This commit is contained in:
Kasra Bigdeli
2017-12-26 19:27:55 -08:00
parent 1a6be3d7a4
commit 3bd8c567de
+6 -1
View File
@@ -123,7 +123,12 @@ router.post('/:appName/', upload.single('sourceFile'), function (req, res, next)
return;
}
res.sendStatus(500);
if (!error) {
error = new Error('ERROR: NULL');
}
res.send(new BaseApi(ApiStatusCodes.STATUS_ERROR_GENERIC, error.stack + ''));
});
});