@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.
- package/dist/project/cap.js +3 -1
- package/package.json +1 -1
package/dist/project/cap.js
CHANGED
|
@@ -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
|
-
|
|
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
|
}
|