Use BAD_STATE consistently for demo mode
This commit is contained in:
@@ -90,7 +90,7 @@ async function setConfig(directoryServerConfig, auditSource) {
|
||||
assert.strictEqual(typeof directoryServerConfig, 'object');
|
||||
assert(auditSource && typeof auditSource === 'object');
|
||||
|
||||
if (constants.DEMO) throw new BoxError(BoxError.BAD_FIELD, 'Not allowed in demo mode');
|
||||
if (constants.DEMO) throw new BoxError(BoxError.BAD_STATE, 'Not allowed in demo mode');
|
||||
|
||||
const oldConfig = await getConfig();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user