diff options
Diffstat (limited to 'app/assets/javascripts/error_tracking/store/list/actions.js')
-rw-r--r-- | app/assets/javascripts/error_tracking/store/list/actions.js | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/app/assets/javascripts/error_tracking/store/list/actions.js b/app/assets/javascripts/error_tracking/store/list/actions.js index 4170c1bf759..94cf444d2e4 100644 --- a/app/assets/javascripts/error_tracking/store/list/actions.js +++ b/app/assets/javascripts/error_tracking/store/list/actions.js @@ -2,7 +2,7 @@ import Service from '../../services'; import * as types from './mutation_types'; import createFlash from '~/flash'; import Poll from '~/lib/utils/poll'; -import { __, sprintf } from '~/locale'; +import { __ } from '~/locale'; let eTagPoll; @@ -31,17 +31,9 @@ export function startPolling({ state, commit, dispatch }) { commit(types.SET_LOADING, false); dispatch('stopPolling'); }, - errorCallback: ({ response }) => { - let errorMessage = ''; - if (response && response.data && response.data.message) { - errorMessage = response.data.message; - } + errorCallback: () => { commit(types.SET_LOADING, false); - createFlash( - sprintf(__(`Failed to load errors from Sentry. Error message: %{errorMessage}`), { - errorMessage, - }), - ); + createFlash(__('Failed to load errors from Sentry.')); }, }); |