Skip to content

Commit

Permalink
fix(watch): don't fatal on login canceled
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkness4 committed Aug 21, 2024
1 parent b93357a commit 10fe1c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/watch/watch_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ func handleConfig(ctx context.Context, version string, config *Config) {

go func() {
if err := client.LoginLoop(ctx); err != nil {
if errors.Is(err, context.Canceled) {
log.Info().Msg("abort login")
return
}

log.Fatal().Err(err).Msg("failed to login")
}
}()
Expand Down

0 comments on commit 10fe1c0

Please sign in to comment.