Skip to content

Commit

Permalink
changes added for bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajan Joshi committed Feb 18, 2020
1 parent 82ae91f commit 5b365af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beater/pubsubbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ func getOrCreateSubscription(client *pubsub.Client, config *config.Config) (*pub
if st, ok := status.FromError(err); ok && st.Code() == codes.AlreadyExists {
// The subscription already exists.
subscription = client.Subscription(config.Subscription.Name)
// } else if err != nil {
// return nil, fmt.Errorf("project %q does not exists", err)
} else if err != nil {
return nil, fmt.Errorf("project %q does not exists", err)
} else if ok && st.Code() == codes.NotFound {
return nil, fmt.Errorf("topic %q does not exists", config.Topic)
} else if !ok {
Expand Down

0 comments on commit 5b365af

Please sign in to comment.