We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b65b7b commit 7845e84Copy full SHA for 7845e84
cmd/root.go
@@ -106,7 +106,10 @@ func replaceVeleroWithOADP(cmd *cobra.Command) *cobra.Command {
106
107
// Read captured output and replace velero with oadp (context-aware)
108
var buf strings.Builder
109
- io.Copy(&buf, r)
+ _, err := io.Copy(&buf, r)
110
+ if err != nil {
111
+ fmt.Fprintf(os.Stderr, "WARNING: Error copying output: %v\n", err)
112
+ }
113
output := replaceVeleroCommandWithOADP(buf.String())
114
fmt.Print(output)
115
}
0 commit comments