diff --git a/waybar/modules/gobar/gobar.go b/waybar/modules/gobar/gobar.go index 2193732..8a60af5 100644 --- a/waybar/modules/gobar/gobar.go +++ b/waybar/modules/gobar/gobar.go @@ -19,8 +19,8 @@ type JSONOutput struct { Percentage int `json:"percentage,omitempty"` } -func (j JSONOutput) Write(o io.Writer) { - json.NewEncoder(o).Encode(j) +func (j JSONOutput) Write(o io.Writer) error { + return json.NewEncoder(o).Encode(j) } // Module wraps summary and json data