From 9155b4d130dd8d774acf2143e48ca6849a16cd40 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Wed, 23 Feb 2022 10:12:57 +0100 Subject: [PATCH] Add missing print directive, fix go.mod --- cmd/backup/exec.go | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/backup/exec.go b/cmd/backup/exec.go index 003ea5d..64c858a 100644 --- a/cmd/backup/exec.go +++ b/cmd/backup/exec.go @@ -87,7 +87,7 @@ func (s *script) runLabeledCommands(label string) error { Filters: filters.NewArgs(f...), }) if err != nil { - return fmt.Errorf("runLabeledCommands: error querying for containers", err) + return fmt.Errorf("runLabeledCommands: error querying for containers: %w", err) } if len(containersWithCommand) == 0 { diff --git a/go.mod b/go.mod index 5321020..99683b5 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,7 @@ go 1.17 require ( github.com/containrrr/shoutrrr v0.5.2 + github.com/cosiner/argv v0.1.0 github.com/docker/docker v20.10.11+incompatible github.com/gofrs/flock v0.8.1 github.com/kelseyhightower/envconfig v1.4.0 @@ -18,7 +19,6 @@ require ( require ( github.com/Microsoft/go-winio v0.4.17 // indirect github.com/containerd/containerd v1.5.5 // indirect - github.com/cosiner/argv v0.1.0 // indirect github.com/docker/distribution v2.7.1+incompatible // indirect github.com/docker/go-connections v0.4.0 // indirect github.com/docker/go-units v0.4.0 // indirect