Commit 430bdaee authored by Denys Mishunov's avatar Denys Mishunov

Merge branch '37412-update-error-tracking-list-message' into 'master'

Update text in error tracking list error message

See merge request gitlab-org/gitlab!33872
parents 49b42dff 4e774306
...@@ -2,7 +2,7 @@ import Service from '../../services'; ...@@ -2,7 +2,7 @@ import Service from '../../services';
import * as types from './mutation_types'; import * as types from './mutation_types';
import createFlash from '~/flash'; import createFlash from '~/flash';
import Poll from '~/lib/utils/poll'; import Poll from '~/lib/utils/poll';
import { __, sprintf } from '~/locale'; import { __ } from '~/locale';
let eTagPoll; let eTagPoll;
...@@ -31,17 +31,9 @@ export function startPolling({ state, commit, dispatch }) { ...@@ -31,17 +31,9 @@ export function startPolling({ state, commit, dispatch }) {
commit(types.SET_LOADING, false); commit(types.SET_LOADING, false);
dispatch('stopPolling'); dispatch('stopPolling');
}, },
errorCallback: ({ response }) => { errorCallback: () => {
let errorMessage = '';
if (response && response.data && response.data.message) {
errorMessage = response.data.message;
}
commit(types.SET_LOADING, false); commit(types.SET_LOADING, false);
createFlash( createFlash(__('Failed to load errors from Sentry.'));
sprintf(__(`Failed to load errors from Sentry. Error message: %{errorMessage}`), {
errorMessage,
}),
);
}, },
}); });
......
---
title: Update text in error tracking list error message
merge_request: 33872
author:
type: fixed
...@@ -9335,7 +9335,7 @@ msgstr "" ...@@ -9335,7 +9335,7 @@ msgstr ""
msgid "Failed to load error details from Sentry." msgid "Failed to load error details from Sentry."
msgstr "" msgstr ""
msgid "Failed to load errors from Sentry. Error message: %{errorMessage}" msgid "Failed to load errors from Sentry."
msgstr "" msgstr ""
msgid "Failed to load group activity metrics. Please try again." msgid "Failed to load group activity metrics. Please try again."
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment