Remove various uses of INTERNAL_ERROR
INTERNAL_ERROR now means there really was some internal error
This commit is contained in:
@@ -1776,7 +1776,7 @@ function statusSftp(callback) {
|
||||
|
||||
docker.inspect('sftp', function (error, container) {
|
||||
if (error && error.reason === BoxError.NOT_FOUND) return callback(null, { status: exports.SERVICE_STATUS_STOPPED });
|
||||
if (error) return callback(new BoxError(BoxError.INTERNAL_ERROR, error));
|
||||
if (error) return callback(error);
|
||||
|
||||
docker.memoryUsage('sftp', function (error, result) {
|
||||
if (error) return callback(error);
|
||||
|
||||
Reference in New Issue
Block a user