Port binding conflict can never happen in update route

This commit is contained in:
Girish Ramakrishnan
2017-10-12 21:01:41 -07:00
parent ed0879ffcd
commit ecad9c499c
2 changed files with 2 additions and 2 deletions
-1
View File
@@ -323,7 +323,6 @@ function updateApp(req, res, next) {
if (error && error.reason === AppsError.NOT_FOUND) return next(new HttpError(404, 'No such app'));
if (error && error.reason === AppsError.BAD_FIELD) return next(new HttpError(400, error.message));
if (error && error.reason === AppsError.BAD_STATE) return next(new HttpError(409, error.message));
if (error && error.reason === AppsError.PORT_CONFLICT) return next(new HttpError(409, 'Port ' + error.message + ' is already in use.'));
if (error) return next(new HttpError(500, error));
next(new HttpSuccess(202, { }));