From eb26a7dee99a34a966eaa3aa0c09063d8893ab90 Mon Sep 17 00:00:00 2001 From: cskh Date: Wed, 12 Oct 2022 11:09:47 -0400 Subject: [PATCH] fix(cli): missing error message (#14959) --- command/peering/list/list.go | 2 +- command/peering/read/read.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/command/peering/list/list.go b/command/peering/list/list.go index 05e481f23f..8cdeea7a98 100644 --- a/command/peering/list/list.go +++ b/command/peering/list/list.go @@ -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 } diff --git a/command/peering/read/read.go b/command/peering/read/read.go index 345de80cec..cef63e4fd3 100644 --- a/command/peering/read/read.go +++ b/command/peering/read/read.go @@ -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 }