-
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
Changes from 5 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
"use strict" | ||
|
||
export default () => { | ||
const emptyState = { | ||
balances: { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import Raven from "raven-js" | ||
|
||
export default ({ node }) => { | ||
const emptyState = { | ||
govParameters: { | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
state.error = err | ||
} | ||
state.loading = false | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
"use strict" | ||
import Raven from "raven-js" | ||
import Vue from "vue" | ||
|
||
export default ({ node }) => { | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
state.error = err | ||
} | ||
state.loading = false | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
"use strict" | ||
import Raven from "raven-js" | ||
|
||
export default ({ node }) => { | ||
const state = { | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
state.error = err | ||
} | ||
state.loading = false | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import axios from "axios" | ||
import Raven from "raven-js" | ||
|
||
export default ({}) => { | ||
const emptyState = { | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
state.error = err | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import Raven from "raven-js" | ||
|
||
export default ({ node }) => { | ||
const emptyState = { | ||
parameters: {}, | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
state.error = err | ||
} | ||
state.loading = false | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
"use strict" | ||
import Raven from "raven-js" | ||
|
||
export default ({ node }) => { | ||
const emptyState = { | ||
|
@@ -30,6 +30,7 @@ export default ({ node }) => { | |
title: `Error fetching staking pool information`, | ||
body: err.message | ||
}) | ||
Raven.captureException(err) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
state.error = err | ||
} | ||
state.loading = false | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
"use strict" | ||
|
||
export default ({ node }) => { | ||
let lock = null | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
"use strict" | ||
|
||
import enableGoogleAnalytics from "../../google-analytics.js" | ||
import Raven from "raven-js" | ||
const { ipcRenderer, remote } = require(`electron`) | ||
import { ipcRenderer, remote } from "electron" | ||
import enableGoogleAnalytics from "../../google-analytics.js" | ||
const config = remote.getGlobal(`config`) | ||
|
||
export default ({ node }) => { | ||
|
@@ -18,7 +16,8 @@ export default ({ node }) => { | |
account: null, | ||
address: null, | ||
errorCollection: false, | ||
stateLoaded: false // shows if the persisted state is already loaded. used to prevent overwriting the persisted state before it is loaded | ||
stateLoaded: false, // shows if the persisted state is already loaded. used to prevent overwriting the persisted state before it is loaded | ||
error: null | ||
} | ||
|
||
const mutations = { | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
Raven.captureException(err) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
commit(`notifyError`, { | ||
title: `Couldn't read keys`, | ||
body: err.message | ||
}) | ||
state.error = err | ||
} finally { | ||
state.loading = false | ||
} | ||
}, | ||
async testLogin(state, { password, account }) { | ||
|
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