cap-js / ord

Open Resource Discovery (ORD) is a protocol that allows applications and services to self-describe their exposed resources and capabilities. This plugin enables generation of ORD document for CAP based applications.
Apache License 2.0
3 stars 4 forks source link

Fix: add error handling when custom.ord.json doesn't exist #86

Open zongqichen opened 1 week ago

zongqichen commented 1 week ago

If there is no custom.ord.json filed existed, there will be throw an error: Cannot find module...., we need to reflect more clear error message.

Fannon commented 1 week ago

You mean if you configured it in .cdsrc but the link to the file does not exist?

Yes, would be good to point that out, also stating the name of the .cdsrc option and the value / path that cannot be found.