mirror of
https://github.com/caprover/caprover
synced 2026-09-23 15:15:36 +00:00
Now we report all kinds of error during DEPLOY. This helps devs to figure out what went wrong.
This commit is contained in:
@@ -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 + ''));
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user