Skip to content

feat(): Added error stack information for debugging purpose#1769

Merged
benflexcompute merged 2 commits intomainfrom
BenY/AddErrorStack
Feb 5, 2026
Merged

feat(): Added error stack information for debugging purpose#1769
benflexcompute merged 2 commits intomainfrom
BenY/AddErrorStack

Conversation

@benflexcompute
Copy link
Copy Markdown
Collaborator

@benflexcompute benflexcompute commented Feb 4, 2026

Note

Low Risk
Only affects the shape/content of generic validation errors by adding an optional debug field; core validation logic is unchanged, with minimal risk limited to downstream consumers assuming a fixed error schema.

Overview
Adds optional stack-trace capture for unexpected exceptions during services.validate_model(): on non-pydantic errors it now records traceback.format_exc() and attaches it to the returned error entry under a new debug field.

Introduces _sanitize_stack_trace() to strip the standard traceback header and redact absolute paths down to the flow360/ subtree (supporting POSIX and Windows paths), and adds unit tests covering sanitization behavior and mixed-path cases.

Written by Cursor Bugbot for commit 22f1000. This will update automatically on new commits. Configure here.

@benflexcompute benflexcompute merged commit efa13d9 into main Feb 5, 2026
21 checks passed
@benflexcompute benflexcompute deleted the BenY/AddErrorStack branch February 5, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant