@@ -288,7 +288,7 @@ func computeMigratedConfig(path string, content []byte, changes *ChangesSet) ([]
288288 for _ , pathToReplace := range pathsToReplace {
289289 err , didReplace := yaml_utils .RenameYamlKey (& rootNode , pathToReplace .oldPath , pathToReplace .newName )
290290 if err != nil {
291- return nil , false , fmt .Errorf ("Couldn't migrate config file at `%s` for key %s: %s " , path , strings .Join (pathToReplace .oldPath , "." ), err )
291+ return nil , false , fmt .Errorf ("Couldn't migrate config file at `%s` for key %s: %w " , path , strings .Join (pathToReplace .oldPath , "." ), err )
292292 }
293293 if didReplace {
294294 changes .Add (fmt .Sprintf ("Renamed '%s' to '%s'" , strings .Join (pathToReplace .oldPath , "." ), pathToReplace .newName ))
@@ -297,27 +297,27 @@ func computeMigratedConfig(path string, content []byte, changes *ChangesSet) ([]
297297
298298 err = changeNullKeybindingsToDisabled (& rootNode , changes )
299299 if err != nil {
300- return nil , false , fmt .Errorf ("Couldn't migrate config file at `%s`: %s " , path , err )
300+ return nil , false , fmt .Errorf ("Couldn't migrate config file at `%s`: %w " , path , err )
301301 }
302302
303303 err = changeElementToSequence (& rootNode , []string {"git" , "commitPrefix" }, changes )
304304 if err != nil {
305- return nil , false , fmt .Errorf ("Couldn't migrate config file at `%s`: %s " , path , err )
305+ return nil , false , fmt .Errorf ("Couldn't migrate config file at `%s`: %w " , path , err )
306306 }
307307
308308 err = changeCommitPrefixesMap (& rootNode , changes )
309309 if err != nil {
310- return nil , false , fmt .Errorf ("Couldn't migrate config file at `%s`: %s " , path , err )
310+ return nil , false , fmt .Errorf ("Couldn't migrate config file at `%s`: %w " , path , err )
311311 }
312312
313313 err = changeCustomCommandStreamAndOutputToOutputEnum (& rootNode , changes )
314314 if err != nil {
315- return nil , false , fmt .Errorf ("Couldn't migrate config file at `%s`: %s " , path , err )
315+ return nil , false , fmt .Errorf ("Couldn't migrate config file at `%s`: %w " , path , err )
316316 }
317317
318318 err = migrateAllBranchesLogCmd (& rootNode , changes )
319319 if err != nil {
320- return nil , false , fmt .Errorf ("Couldn't migrate config file at `%s`: %s " , path , err )
320+ return nil , false , fmt .Errorf ("Couldn't migrate config file at `%s`: %w " , path , err )
321321 }
322322
323323 // Add more migrations here...
0 commit comments