BoxError always needs a second argument
This commit is contained in:
+1
-1
@@ -1378,7 +1378,7 @@ async function install(data, auditSource) {
|
||||
|
||||
const features = appstore.getFeatures();
|
||||
const installedAppCount = await getCount();
|
||||
if (features.appMaxCount <= installedAppCount) throw new BoxError(BoxError.PLAN_LIMIT);
|
||||
if (features.appMaxCount <= installedAppCount) throw new BoxError(BoxError.PLAN_LIMIT, 'app limit reached');
|
||||
|
||||
const subdomain = data.subdomain.toLowerCase(),
|
||||
domain = data.domain.toLowerCase(),
|
||||
|
||||
Reference in New Issue
Block a user