Skip to content

Commit

Permalink
log fatal instead of panicking
Browse files Browse the repository at this point in the history
this is mostly to get vetting to continue beyond this
  • Loading branch information
ja-he committed Aug 4, 2024
1 parent f893d72 commit 6234364
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/control/cli/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/ja-he/dayplan/internal/control"
"github.com/ja-he/dayplan/internal/model"
"github.com/ja-he/dayplan/internal/storage"
"github.com/rs/zerolog/log"
)

// AddCommand contains flags for the `summarize` command line command, for
Expand Down Expand Up @@ -91,7 +92,7 @@ func (command *AddCommand) Execute(args []string) error {
}
}

panic("TODO: need to implement provider setup i suppose")
log.Fatal().Msg("TODO: need to implement provider setup i suppose")
var provider storage.DataProvider

var events []model.Event
Expand Down

0 comments on commit 6234364

Please sign in to comment.