Show more specific error messages for Explain This Vulnerability feature
For the Explain This Vulnerability feature, whenever there's an error, we show a generic "There was an unexpected error. Please try again" message:
![]() |
This makes debugging more difficult because there are several types of errors that can occur:
- Error with the mutation, for example sending an incorrect resource ID.
- Going over the rate limit.
- Wrong API key for OpenAI.
- Missing API key for OpenAI.
- Received a response, but every property is empty.
We should improve the error messaging so that a more specific error message is shown for each of the above errors.