fix(cli): missing error message (#14959)

This commit is contained in:
cskh 2022-10-12 11:09:47 -04:00 committed by GitHub
parent 345191a0df
commit eb26a7dee9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ func (c *cmd) Run(args []string) int {
res, _, err := peerings.List(context.Background(), &api.QueryOptions{})
if err != nil {
c.UI.Error("Error listing peerings")
c.UI.Error(fmt.Sprintf("Error listing peerings: %s", err))
return 1
}

View File

@ -75,7 +75,7 @@ func (c *cmd) Run(args []string) int {
res, _, err := peerings.Read(context.Background(), c.name, &api.QueryOptions{})
if err != nil {
c.UI.Error("Error reading peerings")
c.UI.Error(fmt.Sprintf("Error reading peering: %s", err))
return 1
}