Skip to content

Commit

Permalink
exit when error happened in invoking
Browse files Browse the repository at this point in the history
  • Loading branch information
shimmeris committed Jan 8, 2023
1 parent 7635539 commit 6a76e0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/socks.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ func invoke(providerConfigPath, message string) {
p, err := createProvider(provider, region, providerConfig)
if err != nil {
logrus.Error(err)
return
}
sp, ok := p.(sdk.SocksProxyProvider)
if !ok {
logrus.Errorf("%s can't deploy reverse proxy", provider)
return
}

opts := &sdk.FunctionOpts{
Expand Down

0 comments on commit 6a76e0d

Please sign in to comment.