Skip to content

Commit

Permalink
Don't use %w formatting with log.Fatal (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek-sumo authored Apr 15, 2021
1 parent 35f8b0d commit bd48b7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/scaffold/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ func main() {
app, err := service.New(service.Parameters{ApplicationStartInfo: info, Factories: factories})
if err != nil {
log.Fatal("failed to construct the application: %w", err)
log.Fatalf("failed to construct the application: %v", err)
}
err = app.Run()
if err != nil {
log.Fatal("application run finished with error: %w", err)
log.Fatalf("application run finished with error: %v", err)
}
}
`

0 comments on commit bd48b7d

Please sign in to comment.