[Bug] Incorrect formatting for digest in SOCI index remove
austinvazquez opened this issue · 0 comments
austinvazquez commented
Description
The error message for SOCI index remove command when the index digest is not found can be better formatted to communicate the error.
[soci-snapshotter]$ sudo soci index ls
DIGEST SIZE IMAGE REF PLATFORM MEDIA TYPE CREATED
[soci-snapshotter]$ sudo soci index rm sha256:doesnotexist
soci: the index of the digest [115 104 97 50 53 54 58 100 111 101 115 110 111 116 101 120 105 115 116] doesn't exist
[soci-snapshotter]$
Steps to reproduce the bug
sudo soci index rm sha256:doesnotexist
Describe the results you expected
Expected the message to be:
soci: the index of the digest sha256:doesnotexist doesn't exist
Host information
- OS: Amazon Linux 2023
- Snapshotter Version: soci version 2cb31a4 2cb31a4
- Containerd Version: containerd github.com/containerd/containerd v1.6.31-21-g8cf85ba56 8cf85ba5657e5a87c0a700f1395af20b33aa4990
Any additional context or information about the bug
No response