Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 926fd5b

Browse files
carlossgLee-W
authored andcommitted
fix: empty error on bump failure
before: ``` 2nd git.commit error: "" ``` after ``` 2nd git.commit error: "On branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) nothing to commit, working tree clean " ```
1 parent fc20fbe commit 926fd5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎commitizen/commands/bump.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ def __call__(self): # noqa: C901
329329
cmd.run(git_add_changelog_and_version_files_command)
330330
c = git.commit(message, args=self._get_commit_args())
331331
if c.return_code != 0:
332-
raise BumpCommitFailedError(f'2nd git.commit error: "{c.err.strip()}"')
332+
err = c.err.strip() or c.out
333+
raise BumpCommitFailedError(f'2nd git.commit error: "{err}"')
333334

334335
if c.out:
335336
if self.git_output_to_stderr:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /