Azure / data-api-builder

Data API builder provides modern REST and GraphQL endpoints to your Azure Databases and on-prem stores.
https://aka.ms/dab/docs
MIT License
883 stars 180 forks source link

Changed Error Message if Entity is not configured in dab-config json #2186

Closed sourabh1007 closed 5 months ago

sourabh1007 commented 5 months ago

Why make this change?

As mentioned here #887, if entity is not configured in DAB Config JSON file, it throws a generic exception i.e. keyNotFoundException.

As part of this PR, changed this message to make it clearer.

What is this change?

If Entity is not configured then DAB will throw System.ApplicationException with error message as "The entity '' was not found in the dab-config json"

How was this tested?

Sample Request(s)

sourabh1007 commented 5 months ago

/azp run

sourabh1007 commented 5 months ago

/azp run

seantleonard commented 5 months ago

PR description nor the linked issue describe where this issue was surfacing: as a response to a request, or during DAB startup. Please include a before/after request that shows how your fix appears to the end user.