@sap-ux/project-access 1.19.12 → 1.19.13

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.
@@ -386,7 +386,9 @@ function loadCdsModuleFromProject(capProjectPath, strict = false) {
386
386
  if (typeof cdsDependencyVersion === 'string') {
387
387
  const globalCdsVersion = cds.version;
388
388
  if (getMajorVersion(cdsDependencyVersion) !== getMajorVersion(globalCdsVersion)) {
389
- throw Error(`The @sap/cds major version (${cdsDependencyVersion}) specified in your CAP project is different to the @sap/cds version you have installed globally (${globalCdsVersion}). Please run 'npm install' on your CAP project to ensure that the correct CDS version is loaded.`);
389
+ const error = new Error(`The @sap/cds major version (${cdsDependencyVersion}) specified in your CAP project is different to the @sap/cds version you have installed globally (${globalCdsVersion}). Please run 'npm install' on your CAP project to ensure that the correct CDS version is loaded.`);
390
+ error.code = 'CDS_VERSION_MISMATCH';
391
+ throw error;
390
392
  }
391
393
  }
392
394
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/project-access",
3
- "version": "1.19.12",
3
+ "version": "1.19.13",
4
4
  "description": "Library to access SAP Fiori tools projects",
5
5
  "repository": {
6
6
  "type": "git",