mirror of https://github.com/status-im/consul.git
fix(cli): missing error message (#14959)
This commit is contained in:
parent
345191a0df
commit
eb26a7dee9
|
@ -67,7 +67,7 @@ func (c *cmd) Run(args []string) int {
|
||||||
|
|
||||||
res, _, err := peerings.List(context.Background(), &api.QueryOptions{})
|
res, _, err := peerings.List(context.Background(), &api.QueryOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.UI.Error("Error listing peerings")
|
c.UI.Error(fmt.Sprintf("Error listing peerings: %s", err))
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ func (c *cmd) Run(args []string) int {
|
||||||
|
|
||||||
res, _, err := peerings.Read(context.Background(), c.name, &api.QueryOptions{})
|
res, _, err := peerings.Read(context.Background(), c.name, &api.QueryOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.UI.Error("Error reading peerings")
|
c.UI.Error(fmt.Sprintf("Error reading peering: %s", err))
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue