-
Notifications
You must be signed in to change notification settings - Fork 98
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
Fabo/1573 sent errors via raven #1624
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1624 +/- ##
===========================================
+ Coverage 97.56% 97.68% +0.11%
===========================================
Files 100 100
Lines 2012 2029 +17
Branches 93 93
===========================================
+ Hits 1963 1982 +19
+ Misses 39 37 -2
Partials 10 10
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change err
-> error
on modified files
done @fedekunze |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still missing a few
@@ -30,6 +32,7 @@ export default ({ node }) => { | |||
title: `Error fetching governance parameters`, | |||
body: err.message | |||
}) | |||
Raven.captureException(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error
@@ -39,6 +39,7 @@ export default ({ node }) => { | |||
title: `Error fetching proposals`, | |||
body: err.message | |||
}) | |||
Raven.captureException(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error
@@ -24,6 +24,7 @@ export default ({ node }) => { | |||
title: `Error fetching votes`, | |||
body: err.message | |||
}) | |||
Raven.captureException(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error
@@ -57,6 +58,7 @@ export default ({}) => { | |||
title: `Error fetching keybase information for validators`, | |||
body: err.message | |||
}) | |||
Raven.captureException(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error
@@ -23,6 +25,7 @@ export default ({ node }) => { | |||
title: `Error fetching staking parameters`, | |||
body: err.message | |||
}) | |||
Raven.captureException(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error
try { | ||
let keys = await node.keys.values() | ||
commit(`setAccounts`, keys) | ||
} catch (err) { | ||
Raven.captureException(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error
@@ -61,15 +60,20 @@ export default ({ node }) => { | |||
dl: `/session/` + screen | |||
}) | |||
}, | |||
async loadAccounts({ commit }) { | |||
async loadAccounts({ commit, state }) { | |||
state.loading = true | |||
try { | |||
let keys = await node.keys.values() | |||
commit(`setAccounts`, keys) | |||
} catch (err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error
@@ -132,7 +142,9 @@ export default ({ node }) => { | |||
|
|||
function onTx(err, event) { | |||
if (err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error
@@ -116,25 +117,16 @@ describe(`Module: Transactions`, () => { | |||
expect(node.txs).not.toHaveBeenCalled() | |||
}) | |||
|
|||
it(`should set error to true if dispatches fail`, () => { | |||
it(`should set error to true if enriching transactions fail`, async () => { | |||
let err = new Error(`unexpected error`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error
@@ -65,6 +67,7 @@ export default ({ node }) => { | |||
title: `Error fetching block information`, | |||
body: err.message | |||
}) | |||
Raven.captureException(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error
boy, I don't want to refactor the whole repo in this PR ;P We use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes #1573
Description:
❤️ Thank you!
CHANGELOG.md
with issue # and GitHub usernameFiles changed
in the github PR explorer