@@ -53,7 +53,7 @@ func checkLFSVersion() {
53
53
//Needs at least git v2.1.2
54
54
binVersion , err := git .BinVersion ()
55
55
if err != nil {
56
- fail (fmt . Sprintf ( "Error retrieving git version: %v " , err ), fmt . Sprintf ( "Error retrieving git version: %v" , err ) )
56
+ fail ("LFS server error " , "Error retrieving git version: %v" , err )
57
57
}
58
58
59
59
if ! version .Compare (binVersion , "2.1.2" , ">=" ) {
@@ -199,12 +199,12 @@ func runServ(c *cli.Context) error {
199
199
if private .IsErrServCommand (err ) {
200
200
errServCommand := err .(private.ErrServCommand )
201
201
if errServCommand .StatusCode != http .StatusInternalServerError {
202
- fail ("Unauthorized" , errServCommand .Error ())
202
+ fail ("Unauthorized" , "%s" , errServCommand .Error ())
203
203
} else {
204
- fail ("Internal Server Error" , errServCommand .Error ())
204
+ fail ("Internal Server Error" , "%s" , errServCommand .Error ())
205
205
}
206
206
}
207
- fail ("Internal Server Error" , err .Error ())
207
+ fail ("Internal Server Error" , "%s" , err .Error ())
208
208
}
209
209
os .Setenv (models .EnvRepoIsWiki , strconv .FormatBool (results .IsWiki ))
210
210
os .Setenv (models .EnvRepoName , results .RepoName )
0 commit comments