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

Issue with masked errors is withTransaction() #51

Merged
merged 1 commit into from
Mar 18, 2015
Merged

Issue with masked errors is withTransaction() #51

merged 1 commit into from
Mar 18, 2015

Conversation

coyotesqrl
Copy link

A call to Transaction.exec() triggers the client send and then sets isInMulti and isInWatch to false. If there is a subsequent exception thrown, it is masked because the call to Transaction.discard() throws an exception when the client is no longer in multi.

Moving the call to Transaction.exec() out of the try/catch will allow its own failures to bubble up, but still catch any exceptions thrown by the user's closure.

@tednaleid
Copy link
Contributor

Looks good, thanks for the PR, I'll release this shortly.

tednaleid added a commit that referenced this pull request Mar 18, 2015
Issue with masked errors is withTransaction()
@tednaleid tednaleid merged commit 0e93b98 into grails:master Mar 18, 2015
@tednaleid
Copy link
Contributor

just published as 1.6.4 sorry about the delay getting this out

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.

2 participants