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

Log onSubmitSuccess thrown errors #3723

Merged
merged 1 commit into from
Jan 18, 2018

Conversation

h1b9b
Copy link
Contributor

@h1b9b h1b9b commented Dec 29, 2017

Following this issue, I added a console.error to get the expected behavior
Is it ok ? I have the impression that I didn't understand well the bug, cause it's normal that the error get swallowed as it's thrown in a promise

@codecov-io
Copy link

codecov-io commented Dec 29, 2017

Codecov Report

Merging #3723 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #3723   +/-   ##
======================================
  Coverage     100%    100%           
======================================
  Files          70      70           
  Lines        1578    1582    +4     
======================================
+ Hits         1578    1582    +4
Impacted Files Coverage Δ
src/handleSubmit.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 653aca4...0e79cd3. Read the comment docs.

@erikras
Copy link
Member

erikras commented Jan 16, 2018

Can you add a test that fails before your change, but passes after your change?

@erikras erikras merged commit 1a0660c into redux-form:master Jan 18, 2018
@erikras
Copy link
Member

erikras commented Jan 18, 2018

Published in v7.2.1.

onSubmitSuccess(submitResult, dispatch, props)
return result
.then(submitResult => {
try {
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the purpose of this try block if you're just rethrowing the exception? Seems extraneous, but maybe I'm missing something.

@lock
Copy link

lock bot commented Jun 1, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants