jsonStatus -> formattedStatus

This commit is contained in:
Mikhail Katychev 2020-05-01 20:47:27 -05:00
parent fc155646a0
commit d2c9c318b7
No known key found for this signature in database
GPG Key ID: 9E8549CD2CEB5E59
1 changed files with 2 additions and 2 deletions

View File

@ -486,9 +486,9 @@ func PrintStatus(w io.Writer, stat *status.Status, formatter Formatter) {
// PrintFormattedStatus writes the gRPC status response in its entirety given the // PrintFormattedStatus writes the gRPC status response in its entirety given the
// provided Formatter // provided Formatter
func PrintFormattedStatus(w io.Writer, stat *status.Status, formatter Formatter) { func PrintFormattedStatus(w io.Writer, stat *status.Status, formatter Formatter) {
jsonStatus, err := formatter(stat.Proto()) formattedStatus, err := formatter(stat.Proto())
if err != nil { if err != nil {
fmt.Fprintf(w, "ERROR: %v", err.Error()) fmt.Fprintf(w, "ERROR: %v", err.Error())
} }
fmt.Fprint(w, jsonStatus) fmt.Fprint(w, formattedStatus)
} }