dominikbraun / timetrace

A simple CLI for tracking your working time.
Apache License 2.0
679 stars 75 forks source link

Don't return an error if there are no records yet #103

Closed dominikbraun closed 3 years ago

dominikbraun commented 3 years ago

Update: Instead if ignoring ErrAllDirectoriesEmpty in general, only Start ignores the error as @KonstantinGasser mentioned in #102.

Also, LoadLatestRecord now returns a potential ErrAllDirectories directly instead of an ErrTrackingNotStarted, because this error is without the scope of a function loading a record.

dominikbraun commented 3 years ago

Thanks @joshuaherrera and @KonstantinGasser!