diff --git a/cmd/stcli/cmd_errors.go b/cmd/stcli/cmd_errors.go index 56a41ae0c..0633fef3b 100644 --- a/cmd/stcli/cmd_errors.go +++ b/cmd/stcli/cmd_errors.go @@ -44,9 +44,9 @@ func errorsShow(c *cli.Context) { json.Unmarshal(responseToBArray(response), &data) writer := newTableWriter() for _, item := range data["errors"] { - time := item["time"].(string)[:19] + time := item["when"].(string)[:19] time = strings.Replace(time, "T", " ", 1) - err := item["error"].(string) + err := item["message"].(string) err = strings.TrimSpace(err) fmt.Fprintln(writer, time+":\t"+err) }