feat: better error message when flag key is not found in the project#520
feat: better error message when flag key is not found in the project#520wichopy wants to merge 2 commits intolaunchdarkly:mainfrom
Conversation
|
Thanks for the submission! That makes sense that we should distinguish between the project missing and the flag missing. We've used error types to distinguish between 5xx & 4xx errors. As a result, the |
Could i please just make a feature request then. When I was looking at the code I didn't see anything to reveal error codes with this Feel free to take over this PR or close |
|
Oh. Yeah. We actually have a bug in here where we're returning 500s when it should be a 400. I'll close this one and fix up the error handling. |
Expose more details about dev server errors like what thing wasn't found. Requested in #520.
Requirements
Related issues
Provide links to any issues in this repository or elsewhere relating to this pull request.
Describe the solution you've provided
when using the CLI, its not clear that the error is the flag key does not match a key thats registered in the project. The error is just
"not found"Describe alternatives you've considered
Provide a clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context about the pull request here.