jsonStatus -> formattedStatus
This commit is contained in:
parent
fc155646a0
commit
d2c9c318b7
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue