@angular-devkit/core 14.1.0-next.0 → 14.1.0-next.1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-devkit/core",
3
- "version": "14.1.0-next.0",
3
+ "version": "14.1.0-next.1",
4
4
  "description": "Angular DevKit - Core Utility Library",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -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(e.errors) && e.errors.length) {
450
- return e.errors[0].message;
450
+ if (Array.isArray(validationError.errors) && validationError.errors.length) {
451
+ return validationError.errors[0].message;
451
452
  }
452
453
  }
453
454
  return false;