🐛 Minor fixes

This commit is contained in:
Aykhan Shahsuvarov 2024-09-17 17:33:55 +04:00
parent 68bef4a663
commit 6a33c359c7
2 changed files with 4 additions and 0 deletions

View File

@ -106,6 +106,7 @@ func main() {
return
} else if customerrors.Is(err, customerrors.ErrNoInternet) {
utils.PrintAndExit("No internet connection")
return
}
panic(err)
}

View File

@ -40,6 +40,9 @@ func Run(ctx context.Context, requestConfig *config.RequestConfig) (Responses, e
requestConfig.Yes,
requestConfig.URL,
)
if clients == nil {
return nil, customerrors.ErrInterrupt
}
responses := releaseDodos(ctx, requestConfig, clients)
if ctx.Err() != nil && len(responses) == 0 {