Skip to content

Conversation

@Gohlub
Copy link
Contributor

@Gohlub Gohlub commented Nov 9, 2025

…ion, target) to hydrate error propagation

Solves #1061.

I exercised my own judgement in deciding which operations would benefit from extra context. I noticed some to be internal calls whose escalation would not be useful to the API consumer. In any case, let me know if I should add/remove/update any of the context fields.

@@ -80,7 +80,8 @@ impl PyFunctionExecutor {
.transpose()?
.as_ref(),
)
.to_result_with_py_trace(py)?;
.to_result_with_py_trace(py)
.with_context(|| format!("while calling user-configured function"))?;
Copy link
Member

Choose a reason for hiding this comment

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

Can we also attach the function name?

The same for error messages below.

@Gohlub Gohlub force-pushed the feat/improved-err-propagation branch from 78d4016 to 5f6660a Compare November 13, 2025 19:08
Copy link
Member

@georgeh0 georgeh0 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

@georgeh0 georgeh0 merged commit 9f09062 into cocoindex-io:main Nov 17, 2025
8 checks passed
@badmonster0
Copy link
Member

hi @Gohlub new release is out and we have made a section for you!
https://cocoindex.io/blogs/changelog-0310#gohlub
thanks for your contribution and we love it ❤️ !!

@Gohlub Gohlub deleted the feat/improved-err-propagation branch November 27, 2025 00:45
@Gohlub
Copy link
Contributor Author

Gohlub commented Nov 27, 2025

Thanks!

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.

3 participants