SAP / ui5-tooling

An open and modular toolchain to develop state of the art applications based on the UI5 framework
https://sap.github.io/ui5-tooling
Apache License 2.0
465 stars 69 forks source link

ui5 serve error message is misleading #50

Closed svbender closed 4 years ago

svbender commented 6 years ago

Expected Behavior

If i start the ui5 server in a directory without a valid ui5.yaml file, it can't be served and I expect a meaningful error message like git does: fatal: Not a git repository (or any of the parent directories): .git

Current Behavior

The current error message is misleading and it seems that the ui5 tooling has an issue:

Error: Failed to configure root project "openui5". Please check verbose log for details.
    at configPromises.push.configureProject.then ([...]\ui5-cli\node_modules\@ui5\project\lib\projectPreprocessor.js:66:13)

Steps to reproduce the issue

  1. open a console window
  2. Navigate into a directory without ui5.yaml (e.g. root directory of openui5)
  3. start the server with ui5 serve

Context

Affected components

RandomByte commented 4 years ago

Fixed in current master. If a project is missing a ui5.yaml we now display an error like this:

Failed to read configuration for project my-project at "/path/to/my-project/ui5.yaml". Error: ENOENT: no such file or directory, open '/path/to/my-project/ui5.yaml'