UnisKB/apps/common/exception
panyy b23569e0b8 fix(mindmap): surface backend validation messages in the workbench
find_err_detail relied on ReturnDict.serializer, so plain string and list
errors lost their message and nested ones could raise. Walk dicts and
lists directly instead, and keep the internal non_field_errors key out of
user-facing text.

The axios interceptor toasted every failure before the page could handle
it, so saving over the mindmap limit showed two messages and the workbench
fell back to a generic one. Add an opt-in silentError flag and let the
workbench render the server message itself.
2026-11-12 17:54:06 +08:00
..
__init__.py feat: add __init__.py file to initialize the package 2025-04-24 11:10:58 +08:00
app_exception.py init project 2025-04-14 20:11:23 +08:00
handle_exception.py fix(mindmap): surface backend validation messages in the workbench 2026-11-12 17:54:06 +08:00
test_handle_exception.py fix(mindmap): surface backend validation messages in the workbench 2026-11-12 17:54:06 +08:00