Skip to content

Commit

Permalink
fix(CDAP-20647): Use SCM error message from backend directly
Browse files Browse the repository at this point in the history
  • Loading branch information
de-lan committed Jul 12, 2023
1 parent dba5cf8 commit ac64451
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const SourceControlManagement = () => {
window.location.href = `/ns/${namespace}/scm/sync`;
},
(err) => {
setErrorMessage(T.translate(`${PREFIX}.invalidConfig`, { error: err.message }));
setErrorMessage(err.message);
setLoading(false);
},
() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ export default function ResourceCenterPipelineEntity({
dispatch({
type: 'SET_ERROR',
payload: {
error: T.translate('features.SourceControlManagement.invalidConfig', {
error: err.message,
}).toLocaleString(),
error: err.message,
},
});
dispatch({ type: 'SET_LOADING', payload: { loading: false } });
Expand Down
1 change: 0 additions & 1 deletion app/cdap/text/text-en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3200,7 +3200,6 @@ features:
1: "{context} required field is missing"
_: "{context} required fields are missing"
info: Source control management allows you to connect namespace with the repository of your source control system repository to efficiently manage development process of the deployed pipelines.
invalidConfig: "{error}. Please validate saved source control management configurations."
linkButton: Link Repository
pull:
emptyPipelineListMessage: There are no pipelines in the remote repository or no pipelines matching the search query "{query}"
Expand Down

0 comments on commit ac64451

Please sign in to comment.