Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle wrapped errors in scripter.Run #2674

Merged
merged 10 commits into from
Oct 30, 2023

Conversation

fred84
Copy link
Contributor

@fred84 fred84 commented Aug 14, 2023

scripter.Run checks for the specific error instance to determine if a script is missing.
When a user adds a hook and wraps errors inside it, scripter.Run stops behaving as expected.
This PR unwraps an error before checking whether it is the NOSCRIPT error.

@fred84 fred84 changed the title Handle wrapped error in scripter.Run Handle wrapped errors in scripter.Run Aug 14, 2023
@ofekshenawa ofekshenawa merged commit 81947da into redis:master Oct 30, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants