Move DisksError to BoxError

This commit is contained in:
Girish Ramakrishnan
2019-10-22 11:11:41 -07:00
parent fdf7da9111
commit 812f5cce99
2 changed files with 7 additions and 28 deletions

View File

@@ -56,6 +56,7 @@ function getConfig(req, res, next) {
function getDisks(req, res, next) {
disks.getDisks(function (error, result) {
if (error) return next(new HttpError(500, error));
next(new HttpSuccess(200, result));
});
}