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';
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.'));
},
});
......
---
title: Update text in error tracking list error message
merge_request: 33872
author:
type: fixed
......@@ -9335,7 +9335,7 @@ msgstr ""
msgid "Failed to load error details from Sentry."
msgstr ""
msgid "Failed to load errors from Sentry. Error message: %{errorMessage}"
msgid "Failed to load errors from Sentry."
msgstr ""
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