diff --git a/lib/specifications/types/Application.js b/lib/specifications/types/Application.js index 9506c74b9..5ca83a099 100644 --- a/lib/specifications/types/Application.js +++ b/lib/specifications/types/Application.js @@ -145,7 +145,11 @@ class Application extends ComponentProject { // relevant for the rather "uncommon" App Variants) throw new Error( `Could not find required manifest.json for project ` + - `${this.getName()}: ${manifestJsonError.message}`); + `${this.getName()}: ${manifestJsonError.message}\n\n` + + `If you are about to start a new project, please refer to:\n` + + `https://sap.github.io/ui5-tooling/v3/pages/GettingStarted/#starting-a-new-project`, { + cause: manifestJsonError + }); } throw appDescVarError; } diff --git a/test/lib/specifications/types/Application.js b/test/lib/specifications/types/Application.js index 38699c4a3..5949d5229 100644 --- a/test/lib/specifications/types/Application.js +++ b/test/lib/specifications/types/Application.js @@ -526,7 +526,10 @@ test("_getNamespace: Correct error message if fallback to manifest.appdescr_vari const error = await t.throwsAsync(project._getNamespace()); t.deepEqual(error.message, "Could not find required manifest.json for project application.a: " + - "No such stable or directory: manifest.json", + "No such stable or directory: manifest.json" + + "\n\n" + + "If you are about to start a new project, please refer to:\n" + + "https://sap.github.io/ui5-tooling/v3/pages/GettingStarted/#starting-a-new-project", "Rejected with correct error message"); t.is(_getManifestStub.callCount, 2, "_getManifest called exactly twice");