Compare commits

..

1 commit

Author SHA1 Message Date
1449729882
first write Error file then Move File, so the move error can also be detected while the error writing is always done first
All checks were successful
go/archiver/pipeline/head This commit looks good
2024-09-27 16:59:38 +02:00
2 changed files with 4 additions and 4 deletions

View file

@ -94,10 +94,13 @@ func moveToError(conf *Config, filePath string, archiveErr error) error {
if err != nil {
return err
}
err = os.Rename(filePath, filepath.Join(destFolder, baseName))
err = writeErrorFile(conf, filePath, archiveErr)
if err != nil {
return err
}
err = os.Rename(filePath, filepath.Join(destFolder, baseName))
if err != nil {
return err
}
return nil
}

View file

@ -1,3 +0,0 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}