@angular-devkit/core 14.0.3 → 14.1.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -445,9 +445,10 @@ class CoreSchemaRegistry {
|
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
catch (e) {
|
|
448
|
+
const validationError = e;
|
|
448
449
|
// If the schema is async then an error will be thrown on validation failure
|
|
449
|
-
if (Array.isArray(
|
|
450
|
-
return
|
|
450
|
+
if (Array.isArray(validationError.errors) && validationError.errors.length) {
|
|
451
|
+
return validationError.errors[0].message;
|
|
451
452
|
}
|
|
452
453
|
}
|
|
453
454
|
return false;
|