fix: error should be similar
Signed-off-by: Peter Macdonald <peterm4c@pm.me>
This commit is contained in:
@@ -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,
|
||||
)}`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user