Move DisksError to BoxError
This commit is contained in:
@@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user