Use errors.New() directly to output the error message
Signed-off-by: fate-grand-order <chenjg@harmonycloud.cn>
This commit is contained in:
parent
b7805198b1
commit
08405824ad
3 changed files with 5 additions and 5 deletions
2
cmd/dist/list.go
vendored
2
cmd/dist/list.go
vendored
|
@ -54,7 +54,7 @@ var listCommand = cli.Command{
|
|||
tw := tabwriter.NewWriter(os.Stdout, 1, 8, 1, '\t', 0)
|
||||
defer tw.Flush()
|
||||
|
||||
fmt.Fprintf(tw, "DIGEST\tSIZE\tAGE\n")
|
||||
fmt.Fprintln(tw, "DIGEST\tSIZE\tAGE")
|
||||
walkFn = func(path string, fi os.FileInfo, dgst digest.Digest) error {
|
||||
fmt.Fprintf(tw, "%s\t%s\t%s\n",
|
||||
dgst,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue