Skip to content
This repository has been archived by the owner on Sep 3, 2019. It is now read-only.

fixHighLvlTryCatch #206

Merged
merged 2 commits into from
Nov 14, 2018
Merged

fixHighLvlTryCatch #206

merged 2 commits into from
Nov 14, 2018

Conversation

soshochang
Copy link
Contributor

-when insightAPI is down we were still not displaying an error dialog, but rather the loading screen was still hanging. We had previously added a high lvl try catch code to handle this error case, but it did not work, this has now been fixed.

Copy link
Member

@dwalintukan dwalintukan left a comment

Choose a reason for hiding this comment

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

1 comment, LGTM

@@ -436,23 +436,24 @@ export default class AccountController extends IController {
});
}

private handleMessage = (request: any, _: chrome.runtime.MessageSender, sendResponse: (response: any) => void) => {
private handleMessage = async (request: any, _: chrome.runtime.MessageSender,
Copy link
Member

Choose a reason for hiding this comment

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

params should be indented with 2 spaces if separating them on diff lines:

myFunc = async (
  param1,
  param2,
) => {
}

@soshochang soshochang merged commit 37706d0 into master Nov 14, 2018
@soshochang soshochang deleted the fixHighLvlTryCatch branch November 14, 2018 07:16
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.

2 participants