summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorIbrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>2018-11-17 16:06:39 +0300
committerIbrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>2018-11-17 16:06:39 +0300
commit4c41f380046df21c4efe56c0b0a32244f894f566 (patch)
tree2a334c1a0ce74a6d2fd0a1709b56fe75849a9bfb /main.go
parentMerge pull request #1 from isacikgoz/add-license-1 (diff)
downloadgitbatch-4c41f380046df21c4efe56c0b0a32244f894f566.tar.gz
remove unnecesary log
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/main.go b/main.go
index 4f7af83..509f9ab 100644
--- a/main.go
+++ b/main.go
@@ -1,7 +1,6 @@
package main
import (
- "fmt"
"io/ioutil"
"log"
"strings"
@@ -21,7 +20,6 @@ var (
func main() {
kingpin.Parse()
- log.Printf("%s is your repo pattern", *repoPattern)
FindRepos(*dir)
}
@@ -71,7 +69,6 @@ func CheckIfError(err error) {
if err == nil {
return
}
-
- fmt.Printf("\x1b[31;1m%s\x1b[0m\n", fmt.Sprintf("error: %s", err))
+ log.Fatal(err)
os.Exit(1)
}