We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a7b42d + bfd53f3 commit 2f15f02Copy full SHA for 2f15f02
pkg/container/container.go
@@ -262,9 +262,16 @@ func (d *DataContainer) InitWakaStats(ctx context.Context) error {
262
return err
263
}
264
265
+ // if the status is not "ok", print the message
266
if v.Data.Status != "ok" {
- d.Logger.Println("WakaTime data is not available")
267
- return nil
+ switch v.Data.Status {
268
+ case "pending_update":
269
+ d.Logger.Println("WakaTime is not ready yet")
270
+ default:
271
+ d.Logger.Println("An error occurred while fetching WakaTime data:", v.Data.Status)
272
+
273
+ return nil // Skip if the status is unknown
274
+ }
275
276
277
d.Data.WakaTime = v
0 commit comments