Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Shared: Prevent Cannot read property message of undefined in error catches #1833

Merged
merged 1 commit into from
Jun 20, 2019

Conversation

rihardsgravis
Copy link
Contributor

Description

Errors in error catches should be checked to be instance of Error or if it actually has a message key, otherwise the catch can fail with an error itself.

Type of change

  • Bug fix (a non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines for this project
  • I have performed a self-review of my own code
  • New and existing unit tests pass locally with my changes
  • For changes to mobile that include native code (including React Native modules): I have verified that both iOS and Android successfully build in both Debug and Release modes
  • For changes to shared: If applicable, I have verified that my changes are implemented correctly in desktop and mobile

@rihardsgravis rihardsgravis added T - Bug Type - Bug: Something isn't working C - Shared labels Jun 20, 2019
@rihardsgravis rihardsgravis self-assigned this Jun 20, 2019
@cvarley100 cvarley100 merged commit cbb4042 into develop Jun 20, 2019
rihardsgravis pushed a commit that referenced this pull request Jun 21, 2019
* develop: (24 commits)
  Desktop: Prepare 0.6.2 release (#1837)
  New Crowdin translations (#1826)
  Shared: Add more verbose error log messages (#1834)
  Shared: Fix bugs associated with quorum (#1835)
  Shared: Add fallback node list api endpoints (#1811)
  fix: 0.4.x -> latest database migration (#1832)
  Try not to error in error catches (#1833)
  fix: handle exception if salt is missing from keychain (#1772)
  Bump babel-eslint from 10.0.1 to 10.0.2 (#1804)
  Bump svg2ttf from 4.1.0 to 4.3.0 in /src/shared (#1764)
  New Crowdin translations (#1825)
  Mobile: Bump build no to 72 (#1824)
  New Crowdin translations (#1823)
  New Crowdin translations (#1813)
  fix: wrap all used methods in #makeTransaction in NodesManager.retry (#1812)
  feat: update redux schema before migration (#1818)
  feat: remove locally stored unhealthy nodes (#1810)
  Revert "Bump appcompat-v7 from 27.1.0 to 28.0.0 in /src/mobile/android (#961)" (#1822)
  Mobile/Android: Patch react-native-device-info (#1821)
  Mobile: Update yarn.lock (#1819)
  ...

# Conflicts:
#	src/desktop/src/index.js
@rajivshah3 rajivshah3 deleted the fix/fatal-error-fatal-errors branch June 25, 2019 21:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C - Shared T - Bug Type - Bug: Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants