From 9d4eee0dfec981420dc4e5a4db45a9efd0fee3af Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Wed, 7 Mar 2018 10:45:03 +0100 Subject: [PATCH] reword error message, all apps using a domain have to be deleted --- src/routes/domains.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/domains.js b/src/routes/domains.js index 1730669e0..c42933752 100644 --- a/src/routes/domains.js +++ b/src/routes/domains.js @@ -87,7 +87,7 @@ function del(req, res, next) { domains.del(req.params.domain, function (error) { if (error && error.reason === DomainError.NOT_FOUND) return next(new HttpError(404, error.message)); - if (error && error.reason === DomainError.IN_USE) return next(new HttpError(409, 'Domain is still in use. Remove any apps using this domain')); + if (error && error.reason === DomainError.IN_USE) return next(new HttpError(409, 'Domain is still in use. Remove all apps using this domain')); if (error) return next(new HttpError(500, error)); next(new HttpSuccess(204));