Skip to content

Commit

Permalink
Merge pull request #171 from Mashimiao/rm-dup-error
Browse files Browse the repository at this point in the history
remove duplicated error printing
  • Loading branch information
coolljt0725 authored Aug 14, 2017
2 parents 1ddba1b + 24eb890 commit da84dc9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions cmd/oci-image-tool/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ func createHandle(context *cli.Context) error {

}

if err != nil {
fmt.Printf("creating failed: %v\n", err)
}

return err
}

Expand Down
3 changes: 0 additions & 3 deletions cmd/oci-image-tool/unpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ func unpackHandle(context *cli.Context) error {
err = fmt.Errorf("cannot unpack %q", v.typ)
}

if err != nil {
fmt.Printf("unpacking failed: %v\n", err)
}
return err
}

Expand Down
2 changes: 1 addition & 1 deletion image/descriptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func findDescriptor(w walker, name string) (*v1.Descriptor, error) {
return nil
}); err {
case nil:
return nil, fmt.Errorf("index.json: descriptor not found")
return nil, fmt.Errorf("index.json: descriptor %q not found", name)
case errEOW:
return &d, nil
default:
Expand Down

0 comments on commit da84dc9

Please sign in to comment.