@@ -38,20 +38,20 @@ func PromoteService(cache cache.GitCache, token, service, fromEnv, toEnv, newBra
3838 fileToUpdate := pathForService (service )
3939 newBody , err := cache .ReadFileFromBranch (ctx , fromURL , fileToUpdate , "master" )
4040 if err != nil {
41- return fmt .Errorf ("failed to read the file %v from the %v environment: %s " , fileToUpdate , fromEnv , err )
41+ return fmt .Errorf ("failed to read the file %v from the %v environment: %v " , fileToUpdate , fromEnv , err )
4242 }
4343 err = cache .CreateAndCheckoutBranch (ctx , toURL , "master" , newBranchName )
4444 if err != nil {
45- return fmt .Errorf ("failed to create and checkout the new branch %v for the %v environment: %s " , newBranchName , toEnv , err )
45+ return fmt .Errorf ("failed to create and checkout the new branch %v for the %v environment: %v " , newBranchName , toEnv , err )
4646 }
4747 err = cache .WriteFileToBranchAndStage (ctx , toURL , newBranchName , fileToUpdate , newBody )
4848 if err != nil {
49- return fmt .Errorf ("failed to write the updated file to %v: %s " , fileToUpdate , err )
49+ return fmt .Errorf ("failed to write the updated file to %v: %v " , fileToUpdate , err )
5050 }
5151
5252 err = cache .CommitAndPushBranch (ctx , toURL , newBranchName , "this is a test commit" , token )
5353 if err != nil {
54- return fmt .Errorf ("failed to commit and push branch for environment %v: %s " , toEnv , err )
54+ return fmt .Errorf ("failed to commit and push branch for environment %v: %v " , toEnv , err )
5555 }
5656
5757 pr , err := createPullRequest (ctx , fromEnv , fromURL , toEnv , toURL , token , newBranchName )
0 commit comments