Skip to content

Commit

Permalink
WIP: Show out-of-band errors for getOrganization
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Hu authored and marcomorain committed Sep 25, 2018
1 parent b070a2b commit ae41c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ func getOrganization(ctx context.Context, logger *logger.Logger, organizationNam
err = graphQLclient.Run(ctx, request, &response)

if err != nil || response.Organization.ID == "" {
err = fmt.Errorf("Unable to find organization %s of vcs-type %s", organizationName, organizationVcs)
err = errors.Wrap(err, fmt.Sprintf("Unable to find organization %s of vcs-type %s", organizationName, organizationVcs))
}

return response.Organization.ID, err
Expand Down

0 comments on commit ae41c6c

Please sign in to comment.