better AVX error message
This commit is contained in:
+1
-1
@@ -2093,7 +2093,7 @@ async function getDynamicEnvironmentOidc(app, options) {
|
||||
async function checkAddonsSupport(addons) {
|
||||
assert.strictEqual(typeof addons, 'object');
|
||||
|
||||
if (addons.mongodb && !await hasAVX()) return new BoxError(BoxError.BAD_FIELD, 'Addon MongoDB requires AVX support');
|
||||
if (addons.mongodb && !await hasAVX()) return new BoxError(BoxError.BAD_FIELD, 'This app requires MongoDB, but MongoDB is disabled because the CPU does not support AVX');
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user