opencontainers / image-tools

OCI Image Tooling
https://opencontainers.org
Apache License 2.0
271 stars 82 forks source link

remove duplicated error printing #171

Closed Mashimiao closed 7 years ago

Mashimiao commented 7 years ago

Without this fix, result was:

$ oci-image-tool create --platform linux  busybox-oci testdir
creating failed: index.json: descriptor not found
index.json: descriptor not found

duplicated errors are printed and we don't know which descriptor can't be found.

Signed-off-by: Ma Shimiao mashimiao.fnst@cn.fujitsu.com

zhouhao3 commented 7 years ago

Similar content in unpack.go also needs to be removed.

Mashimiao commented 7 years ago

updated, thanks

zhouhao3 commented 7 years ago

LGTM

Approved with PullApprove

Mashimiao commented 7 years ago

ping @xiekeyang @coolljt0725

coolljt0725 commented 7 years ago

LGTM

Approved with PullApprove