Skip to content

Commit

Permalink
web/client: Clearer error if feeds manager fails to create
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Nov 14, 2024
1 parent 8d92b95 commit cdbd5e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deployment/environment/web/sdk/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ func (c *client) CreateJobDistributor(ctx context.Context, in JobDistributorInpu
feedsManager := success.GetFeedsManager()
return feedsManager.GetId(), nil
}
if err, ok := response.GetCreateFeedsManager().(*generated.CreateFeedsManagerCreateFeedsManagerSingleFeedsManagerError); ok {
msg := err.GetMessage()
return "", fmt.Errorf("failed to create feeds manager: %v", msg)
}
return "", fmt.Errorf("failed to create feeds manager")
}

Expand Down

0 comments on commit cdbd5e4

Please sign in to comment.