Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
Replace fmt.Errorf
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Beck committed Oct 23, 2020
1 parent a47e127 commit 09807a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/wrestic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"context"
"errors"
"flag"
"fmt"
"os"
Expand Down Expand Up @@ -163,7 +164,7 @@ func run(resticCLI *restic.Restic, mainLogger logr.Logger) error {
for _, pod := range podList {
data, err := kubernetes.PodExec(pod, mainLogger)
if err != nil {
mainLogger.Error(fmt.Errorf("error occured during data stream from k8s"), "pod execution was interrupted")
mainLogger.Error(errors.New("error occured during data stream from k8s"), "pod execution was interrupted")
return err
}
filename := fmt.Sprintf("/%s-%s", os.Getenv(restic.Hostname), pod.ContainerName)
Expand Down

0 comments on commit 09807a7

Please # to comment.