fix: error should be similar

Signed-off-by: Peter Macdonald <peterm4c@pm.me>
This commit is contained in:
Peter Macdonald
2025-04-16 13:03:45 +02:00
parent d15355c9b8
commit 0fbcab1541
2 changed files with 3 additions and 3 deletions
@@ -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",
);
});
});
@@ -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,
)}`,
);