@@ -53,7 +53,7 @@ func checkLFSVersion() {
5353 //Needs at least git v2.1.2
5454 binVersion , err := git .BinVersion ()
5555 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 )
5757 }
5858
5959 if ! version .Compare (binVersion , "2.1.2" , ">=" ) {
@@ -199,12 +199,12 @@ func runServ(c *cli.Context) error {
199199 if private .IsErrServCommand (err ) {
200200 errServCommand := err .(private.ErrServCommand )
201201 if errServCommand .StatusCode != http .StatusInternalServerError {
202- fail ("Unauthorized" , errServCommand .Error ())
202+ fail ("Unauthorized" , "%s" , errServCommand .Error ())
203203 } else {
204- fail ("Internal Server Error" , errServCommand .Error ())
204+ fail ("Internal Server Error" , "%s" , errServCommand .Error ())
205205 }
206206 }
207- fail ("Internal Server Error" , err .Error ())
207+ fail ("Internal Server Error" , "%s" , err .Error ())
208208 }
209209 os .Setenv (models .EnvRepoIsWiki , strconv .FormatBool (results .IsWiki ))
210210 os .Setenv (models .EnvRepoName , results .RepoName )
0 commit comments