Skip to content

Commit

Permalink
More descriptive exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
iamthen0ise committed Sep 11, 2021
1 parent 25febd4 commit 59e226f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func main() {
if inputArgs.ForceCreate {
err := gitBranchName.CreateBranch(true)
if err != nil {
fmt.Print("Something went wrong,", err.Error())
fmt.Print("Can't create new branch,", err.Error())
}
} else {
fmt.Println("Your new branch name is:", s.Colorize(&gitBranchName.BranchName, s.Magenta))
Expand All @@ -79,12 +79,12 @@ func main() {
if inputArgs.Strategy == "Rename" {
err := gitBranchName.RenameCurrentBranch()
if err != nil {
fmt.Print("Something went wrong,", err.Error())
fmt.Print("Can't rename current branch,", err.Error())
}
} else {
err := gitBranchName.CreateBranch(true)
if err != nil {
fmt.Print("Something went wrong,", err.Error())
fmt.Print("Can't create new branch,", err.Error())
}
}
}
Expand Down

0 comments on commit 59e226f

Please sign in to comment.