added windows compatibility
This commit is contained in:
parent
ea4f2edcfd
commit
a6d2d75c45
3 changed files with 93 additions and 78 deletions
5
main.go
5
main.go
|
@ -87,8 +87,9 @@ func applyPatchWrapper(patchPath, rootPath string, successfulPatches, failedPatc
|
|||
fmt.Printf("Applying patch: %s\n", patchPath)
|
||||
err := applyPatch(patchPath, rootPath)
|
||||
if err != nil {
|
||||
fmt.Printf("Failed to apply patch %s: %v\n", patchPath, err)
|
||||
*failedPatches = append(*failedPatches, patchPath)
|
||||
errorMsg := fmt.Sprintf("Failed to apply patch '%s': %v", patchPath, err)
|
||||
fmt.Println(errorMsg)
|
||||
*failedPatches = append(*failedPatches, errorMsg) // Log detailed error message
|
||||
} else {
|
||||
fmt.Printf("Successfully applied patch: %s\n", patchPath)
|
||||
*successfulPatches = append(*successfulPatches, patchPath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue