File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -63,17 +63,17 @@ func main() {
63
63
flag .Parse ()
64
64
65
65
if v {
66
- fmt .Printf ( "splitsh-lite version %s\n " , version )
66
+ fmt .Fprintf ( os . Stderr , "splitsh-lite version %s\n " , version )
67
67
os .Exit (0 )
68
68
}
69
69
70
70
if len (prefixes ) == 0 {
71
- fmt .Println ( "You must provide the directory to split via the --prefix flag" )
71
+ fmt .Fprintln ( os . Stderr , "You must provide the directory to split via the --prefix flag" )
72
72
os .Exit (1 )
73
73
}
74
74
75
75
if legacy {
76
- fmt .Fprintf (os .Stderr , `The --legacy option is deprecated (use --git="<1.8.2" instead)` )
76
+ fmt .Fprintln (os .Stderr , `The --legacy option is deprecated (use --git="<1.8.2" instead)` )
77
77
gitVersion = "<1.8.2"
78
78
}
79
79
@@ -100,9 +100,8 @@ func main() {
100
100
}()
101
101
}
102
102
103
- err := splitter .Split (config , result )
104
- if err != nil {
105
- fmt .Println (err )
103
+ if err := splitter .Split (config , result ); err != nil {
104
+ fmt .Fprintln (os .Stderr , err .Error ())
106
105
os .Exit (1 )
107
106
}
108
107
You can’t perform that action at this time.
0 commit comments