Skip to content

Commit

Permalink
fixed a bug in main function since log.fatalf does not support %w
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFeij committed Apr 25, 2024
1 parent 2590cce commit 95aa711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func main() {

tokenMaker, err := token.NewPasetoMaker(configs.TokenSymmetricKey)
if err != nil {
log.Fatalf("cannot create token maker: %w", err)
log.Fatalf("cannot create token maker: %v", err)
}

server, err := api.NewServer(&configs, services.NewSQLServices(db), tokenMaker)
Expand Down

0 comments on commit 95aa711

Please sign in to comment.