mirror of
https://github.com/aykhans/dodo.git
synced 2025-04-16 09:53:12 +00:00
🐛 Minor fixes
This commit is contained in:
parent
68bef4a663
commit
6a33c359c7
1
main.go
1
main.go
@ -106,6 +106,7 @@ func main() {
|
||||
return
|
||||
} else if customerrors.Is(err, customerrors.ErrNoInternet) {
|
||||
utils.PrintAndExit("No internet connection")
|
||||
return
|
||||
}
|
||||
panic(err)
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user