coder999o opened a new pull request, #1975:
URL: https://github.com/apache/rocketmq-dashboard/pull/1975

   ## What is the purpose of the change
   
   Preserve backend error messages from failed REST API responses.
   
   The shared axios client already handles non-success business codes in HTTP 
200 responses, but HTTP 4xx/5xx responses with the same `Result.error` envelope 
kept the generic Axios error message. Pages that read `error.message` could 
therefore show a vague failure instead of the backend validation message.
   
   ## Brief changelog
   
   - Read standard backend error envelopes from failed HTTP responses.
   - Keep protected 401 session-expiry handling unchanged.
   - Add regression coverage for HTTP error envelopes and protected 401 
behavior.
   
   ## Verifying this change
   
   - `git diff --check`
   - `npm test -- --run src/api/client.test.ts src/api/auth.test.ts`
   - `npm test -- --run src/api`
   - `./node_modules/.bin/eslint --max-warnings=0 src/api/client.ts 
src/api/client.test.ts`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to