Closed mabashian closed 3 months ago
In some instances, the API responds with an error structure that looks like:
{ "detail": "Some error message" }
EDA's error adapter currently interprets this as a "field" error. This is a common generic error pattern though and it is also observed in AWX. See https://github.com/ansible/ansible-ui/blob/main/frontend/awx/common/adapters/awxErrorAdapter.tsx#L15-L21 for a similar chunk of code in AWX's error handler.
Issues 1 New issue 0 Accepted issues
Measures 0 Security Hotspots 0.0% Coverage on New Code 0.0% Duplication on New Code
See analysis details on SonarCloud
In some instances, the API responds with an error structure that looks like:
EDA's error adapter currently interprets this as a "field" error. This is a common generic error pattern though and it is also observed in AWX. See https://github.com/ansible/ansible-ui/blob/main/frontend/awx/common/adapters/awxErrorAdapter.tsx#L15-L21 for a similar chunk of code in AWX's error handler.