From 59e226f31b72733654dc822ce06f740db47e0f95 Mon Sep 17 00:00:00 2001 From: iamthen0ise Date: Sat, 11 Sep 2021 23:51:28 +0300 Subject: [PATCH] More descriptive exceptions --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 6e1c392..b694a75 100644 --- a/main.go +++ b/main.go @@ -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)) @@ -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()) } } }