Skip to content

Commit

Permalink
Simplify error wrapping (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-hu authored Sep 26, 2018
1 parent 3b583f3 commit 4cccbce
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 @@ -444,7 +444,7 @@ func createNamespaceWithOwnerID(ctx context.Context, logger *logger.Logger, name
err = graphQLclient.Run(ctx, request, &response)

if err != nil {
err = errors.Wrap(err, fmt.Sprintf("Unable to create namespace %s for ownerId %s", name, ownerID))
err = errors.Wrapf(err, "Unable to create namespace %s for ownerId %s", name, ownerID)
}

return &response.CreateNamespace.CreateNamespaceResponse, err
Expand Down

0 comments on commit 4cccbce

Please sign in to comment.