Show API error message to user instead of generic fallback

- Export ApiError from api-client-react package
- home.tsx onError: extract error.data.message from ApiError and display it
  (cooldown, rate limit, consent_required, validation messages are now visible)
- Differentiate alert title: "Contribution non retenue" for AI rejection
  (has a reason), "Envoi impossible" for technical errors

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-23 16:34:35 +02:00
parent 9553115d8c
commit b25fd5da49
2 changed files with 15 additions and 3 deletions
+1
View File
@@ -7,5 +7,6 @@ export {
getVisitorId,
addExtraHeader,
removeExtraHeader,
ApiError,
} from "./custom-fetch";
export type { AuthTokenGetter } from "./custom-fetch";