Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 246e8b1

Browse files
committed
Make failure to restore a file to its original location non-fatal
1 parent 8de188a commit 246e8b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extractor/cli/go-autobuilder/go-autobuilder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func restoreRepoLayout(fromDir string, dirEntries []string, scratchDirName strin
149149
log.Printf("Restoring %s/%s to %s/%s.\n", fromDir, dirEntry, toDir, dirEntry)
150150
err := os.Rename(filepath.Join(fromDir, dirEntry), filepath.Join(toDir, dirEntry))
151151
if err != nil {
152-
log.Fatalf("Failed to move file/directory %s from directory %s to directory %s: %s\n", dirEntry, fromDir, toDir, err.Error())
152+
log.Printf("Failed to move file/directory %s from directory %s to directory %s: %s\n", dirEntry, fromDir, toDir, err.Error())
153153
}
154154
}
155155
}

0 commit comments

Comments
 (0)