From 0bb2da8a04972894b3c67ebdbe6cc4af8df20df3 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 24 Feb 2021 09:53:57 -0800 Subject: [PATCH] better error message --- src/domains.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domains.js b/src/domains.js index a9065506f..19f179d3f 100644 --- a/src/domains.js +++ b/src/domains.js @@ -313,7 +313,7 @@ function del(domain, auditSource, callback) { assert.strictEqual(typeof callback, 'function'); if (domain === settings.adminDomain()) return callback(new BoxError(BoxError.CONFLICT, 'Cannot remove admin domain')); - if (domain === settings.mailDomain()) return callback(new BoxError(BoxError.CONFLICT, 'Cannot remove mail domain')); + if (domain === settings.mailDomain()) return callback(new BoxError(BoxError.CONFLICT, 'Cannot remove mail domain. Change the mail server location first')); domaindb.del(domain, function (error) { if (error) return callback(error);