Skip to content

Commit

Permalink
fix(main): ignore context canceled
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkness4 committed Sep 25, 2024
1 parent 0695125 commit ec7f49b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
package main

import (
"context"
"errors"
"os"

"github.com/Darkness4/fc2-live-dl-go/cmd/clean"
Expand Down Expand Up @@ -76,7 +78,7 @@ var app = &cli.App{

func main() {
log.Logger = log.Logger.With().Caller().Logger()
if err := app.Run(os.Args); err != nil {
if err := app.Run(os.Args); err != nil && !errors.Is(err, context.Canceled) {
log.Fatal().Err(err).Msg("application finished")
}
}

0 comments on commit ec7f49b

Please sign in to comment.