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

Audit every catch statement in the codebase #1580

Merged
merged 1 commit into from
Sep 24, 2019

Conversation

swansontec
Copy link
Contributor

@swansontec swansontec commented Aug 29, 2019

PR Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS Tablet
  • Tested on small Android
  • n/a

@swansontec swansontec requested a review from thehobbit85 August 29, 2019 21:03
@swansontec swansontec force-pushed the william/error-insanity branch 3 times, most recently from 32f0045 to f141829 Compare September 3, 2019 23:24
@swansontec swansontec force-pushed the william/error-insanity branch 2 times, most recently from 7b972e2 to 6b48c7c Compare September 13, 2019 22:53
@swansontec swansontec force-pushed the william/error-insanity branch from 6b48c7c to 6e9f5d9 Compare September 24, 2019 18:39
@@ -7,30 +7,20 @@ import type { Dispatch, GetState } from '../types/reduxTypes.js'
export const enableOtp = () => async (dispatch: Dispatch, getState: GetState) => {
const state = getState()
const account = CORE_SELECTORS.getAccount(state)
try {
Copy link
Contributor Author

@swansontec swansontec Sep 24, 2019

Choose a reason for hiding this comment

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

We don't need try/catch here because the dispatch includes that by default for all actions, but I would be OK putting these back to catch (error) { showError(error) }

@swansontec swansontec merged commit e94b4f3 into develop Sep 24, 2019
@swansontec swansontec deleted the william/error-insanity branch September 24, 2019 22:35
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