summaryrefslogtreecommitdiff
path: root/pkg/checkpoint
diff options
context:
space:
mode:
authorKir Kolyshkin <kolyshkin@gmail.com>2020-10-05 15:55:29 -0700
committerKir Kolyshkin <kolyshkin@gmail.com>2020-10-05 15:56:44 -0700
commit684d0079d2cb5f84f65b3313a52ca3fbcbc40350 (patch)
tree6d4d5d114c749f0b1d44d021be2746eab8bbbf1c /pkg/checkpoint
parent4878dff3e2c89382699c29c10dc5036367275575 (diff)
downloadpodman-684d0079d2cb5f84f65b3313a52ca3fbcbc40350.tar.gz
podman-684d0079d2cb5f84f65b3313a52ca3fbcbc40350.tar.bz2
podman-684d0079d2cb5f84f65b3313a52ca3fbcbc40350.zip
Lowercase some errors
This commit is courtesy of ``` for f in $(git ls-files *.go | grep -v ^vendor/); do \ sed -i 's/\(errors\..*\)"Error /\1"error /' $f; done for f in $(git ls-files *.go | grep -v ^vendor/); do \ sed -i 's/\(errors\..*\)"Failed to /\1"failed to /' $f; done ``` etc. Self-reviewed using `git diff --word-diff`, found no issues. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Diffstat (limited to 'pkg/checkpoint')
-rw-r--r--pkg/checkpoint/checkpoint_restore.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/checkpoint/checkpoint_restore.go b/pkg/checkpoint/checkpoint_restore.go
index e1f6703f4..9de04266f 100644
--- a/pkg/checkpoint/checkpoint_restore.go
+++ b/pkg/checkpoint/checkpoint_restore.go
@@ -24,11 +24,11 @@ import (
func crImportFromJSON(filePath string, v interface{}) error {
content, err := ioutil.ReadFile(filePath)
if err != nil {
- return errors.Wrap(err, "Failed to read container definition for restore")
+ return errors.Wrap(err, "failed to read container definition for restore")
}
json := jsoniter.ConfigCompatibleWithStandardLibrary
if err = json.Unmarshal(content, v); err != nil {
- return errors.Wrapf(err, "Failed to unmarshal container definition %s for restore", filePath)
+ return errors.Wrapf(err, "failed to unmarshal container definition %s for restore", filePath)
}
return nil
@@ -41,7 +41,7 @@ func CRImportCheckpoint(ctx context.Context, runtime *libpod.Runtime, input stri
// tarball to a temporary directory
archiveFile, err := os.Open(input)
if err != nil {
- return nil, errors.Wrap(err, "Failed to open checkpoint archive for import")
+ return nil, errors.Wrap(err, "failed to open checkpoint archive for import")
}
defer errorhandling.CloseQuiet(archiveFile)
options := &archive.TarOptions{