Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-06-09 18:08:05 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-09 18:08:05 +0300
commit6ff3eb60e3ddbfe7450b760efe57112ddacbdb69 (patch)
treed998a13cd56f46b28c542661ea5138da0d4a4e05 /app/assets/javascripts/error_tracking
parentea054ec1c398c2903820284df597ccbd14ec2319 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/error_tracking')
-rw-r--r--app/assets/javascripts/error_tracking/store/list/actions.js14
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.'));
},
});