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 }