Remove various uses of INTERNAL_ERROR
INTERNAL_ERROR now means there really was some internal error
This commit is contained in:
+2
-2
@@ -46,7 +46,7 @@ function getDisks(callback) {
|
||||
};
|
||||
|
||||
apps.getAll(function (error, allApps) {
|
||||
if (error) return callback(new BoxError(BoxError.INTERNAL_ERROR, error));
|
||||
if (error) return callback(error);
|
||||
|
||||
async.eachSeries(allApps, function (app, iteratorDone) {
|
||||
if (!app.dataDir) {
|
||||
@@ -59,7 +59,7 @@ function getDisks(callback) {
|
||||
iteratorDone();
|
||||
});
|
||||
}, function (error) {
|
||||
if (error) return callback(new BoxError(BoxError.INTERNAL_ERROR, error));
|
||||
if (error) return callback(error);
|
||||
|
||||
callback(null, disks);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user