Skip to content

Improve createDataFileDefinition error handling#134

Merged
s0 merged 2 commits intomainfrom
improved-error-handling
Mar 4, 2026
Merged

Improve createDataFileDefinition error handling#134
s0 merged 2 commits intomainfrom
improved-error-handling

Conversation

@s0
Copy link
Copy Markdown
Member

@s0 s0 commented Mar 4, 2026

No description provided.

@s0 s0 enabled auto-merge (squash) March 4, 2026 21:18
@s0 s0 disabled auto-merge March 4, 2026 21:19
@s0 s0 enabled auto-merge (squash) March 4, 2026 21:19
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a376c3a187

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

currentPath,
cause,
);
onError?.(error);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Isolate onError callback failures from file state updates

Calling the user-provided onError directly inside the save-error path can throw and abort the rest of this catch block, which means state.current.state never transitions to 'error' and updateDataFromState() is skipped. This turns a recoverable file write failure into an unhandled rejection path whenever a consumer’s handler throws (for example, due to logging/telemetry failures), so the hook can stop reporting its own error state reliably.

Useful? React with 👍 / 👎.

@s0 s0 merged commit 37e7f94 into main Mar 4, 2026
4 checks passed
@s0 s0 deleted the improved-error-handling branch March 4, 2026 21:22
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