diff --git a/plugins/scaffolder-backend-module-gitlab/src/actions/gitlabRepoPush.test.ts b/plugins/scaffolder-backend-module-gitlab/src/actions/gitlabRepoPush.test.ts index 5644e0b952..35a0b83ae5 100644 --- a/plugins/scaffolder-backend-module-gitlab/src/actions/gitlabRepoPush.test.ts +++ b/plugins/scaffolder-backend-module-gitlab/src/actions/gitlabRepoPush.test.ts @@ -420,7 +420,7 @@ describe('createGitLabCommit', () => { ); await expect(instance.handler(ctx)).rejects.toThrow( - "Modifying the files in some-branch failed. Please verify that all files you're trying to modify exist in the repository. Error: Commit failed", + "Committing the changes to some-branch failed. Please verify that all files you're trying to modify exist in the repository. Error: Commit failed", ); }); @@ -443,7 +443,7 @@ describe('createGitLabCommit', () => { ); await expect(instance.handler(ctx)).rejects.toThrow( - "Modifying the files in some-branch failed. Please verify that all files you're trying to modify exist in the repository. Error: Commit failed", + "Committing the changes to some-branch failed. Please verify that all files you're trying to modify exist in the repository. Error: Commit failed", ); }); }); diff --git a/plugins/scaffolder-backend-module-gitlab/src/actions/gitlabRepoPush.ts b/plugins/scaffolder-backend-module-gitlab/src/actions/gitlabRepoPush.ts index 8b6f5cca50..9ac1de13d3 100644 --- a/plugins/scaffolder-backend-module-gitlab/src/actions/gitlabRepoPush.ts +++ b/plugins/scaffolder-backend-module-gitlab/src/actions/gitlabRepoPush.ts @@ -205,7 +205,7 @@ export const createGitlabRepoPushAction = (options: { } catch (e) { if (commitAction !== 'create') { throw new InputError( - `Modifying the files in ${branchName} failed. Please verify that all files you're trying to modify exist in the repository. ${getErrorMessage( + `Committing the changes to ${branchName} failed. Please verify that all files you're trying to modify exist in the repository. ${getErrorMessage( e, )}`, );