Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tag: Display error message when creating tag with invalid name (fix issue: #286) #296

Merged
merged 3 commits into from
Jun 14, 2014

Conversation

mmargoliono
Copy link
Contributor

When an invalid name is supplied during tag creation, there was no error
displayed to the user. It would always say "Created a new tag named [tag
name]" even though no tag is actually created.

This change will display error message instead of tag creation message
when git tag command fails.

Reported-by: V字龍(Vdragon) pika1021@gmail.com
Signed-off-by: Minarto Margoliono lie.r.min.g@gmail.com

When an invalid name is supplied during tag creation, there was no error
displayed to the user. It would always say "Created a new tag named [tag
name]" even though no tag is actually created.

This change will display error message instead of tag creation message
when git tag command fails.

Reported-by: V字龍(Vdragon) <pika1021@gmail.com>
Signed-off-by: Minarto Margoliono <lie.r.min.g@gmail.com>
The error message was displayed using information dialog. As a result,
it is displaying git-cola icon instead of error icon.

This change use the proper error dialog instead of information dialog.

Reported-by: V字龍(Vdragon) <pika1021@gmail.com>
Signed-off-by: Minarto Margoliono <lie.r.min.g@gmail.com>
The error message was handled in cmds.py while the success code was
handled in createtag.py. This will make it harder to maintain later.

This change move the error handling code to the same location as success
handling code.

Reported-by: V字龍(Vdragon) <pika1021@gmail.com>
Signed-off-by: Minarto Margoliono <lie.r.min.g@gmail.com>
davvid added a commit that referenced this pull request Jun 14, 2014
tag: Display error message when creating tag with invalid name

Closes #286

Signed-off-by: David Aguilar <davvid@gmail.com>
@davvid davvid merged commit 332fcfa into git-cola:master Jun 14, 2014
@mmargoliono mmargoliono deleted the 286 branch June 14, 2014 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants