Skip to content

Commit

Permalink
Merge pull request #13 from tarosky/issue/12
Browse files Browse the repository at this point in the history
Use Panic instead of Fatal
Close #12.
  • Loading branch information
harai authored Jan 17, 2021
2 parents a63d5bd + 3be3d9a commit cc5b544
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nudged.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func main() {
defer log.Sync()

if nudgeType := c.String("nudge-type"); nudgeType != "mtime" {
log.Fatal("illegal nudge-type parameter", zap.String("parameter", nudgeType))
log.Panic("illegal nudge-type parameter", zap.String("parameter", nudgeType))
}

ctx, cancel := context.WithCancel(context.Background())
Expand Down Expand Up @@ -103,7 +103,7 @@ func main() {

err := app.Run(os.Args)
if err != nil {
stdlog.Fatal("failed to run app", zap.Error(err))
stdlog.Panic("failed to run app", zap.Error(err))
}
}

Expand Down

0 comments on commit cc5b544

Please sign in to comment.