Browse Source

cmd/syncthing-cli: Fix errors show command (#4849)

pramodhkp 7 years ago
parent
commit
071910b255
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cmd/stcli/cmd_errors.go

+ 2 - 2
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)
 	}