diff --git a/main.go b/main.go index da8aae0..1b5baec 100644 --- a/main.go +++ b/main.go @@ -106,6 +106,7 @@ func main() { return } else if customerrors.Is(err, customerrors.ErrNoInternet) { utils.PrintAndExit("No internet connection") + return } panic(err) } diff --git a/requests/run.go b/requests/run.go index 7e6af17..c1ae2bc 100644 --- a/requests/run.go +++ b/requests/run.go @@ -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 {