BoxError always needs a second argument

This commit is contained in:
Johannes Zellner
2025-08-21 11:20:18 +02:00
parent fdc4ddf316
commit 12e4441227
+1 -1
View File
@@ -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(),