From 071910b2550dee7beb0d84e5950d47fa25647609 Mon Sep 17 00:00:00 2001 From: pramodhkp <1507241+pramodhkp@users.noreply.github.com> Date: Thu, 19 Apr 2018 01:38:10 +0530 Subject: [PATCH] cmd/syncthing-cli: Fix errors show command (#4849) --- cmd/stcli/cmd_errors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }