Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hedwigz committed Sep 19, 2022
1 parent 8e769ea commit 6f541ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions port/cli/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ func (c *PortClient) ReadEntity(ctx context.Context, id string, blueprint string
if err != nil {
return nil, err
}
if !pb.OK {
return nil, fmt.Errorf("failed to read entity, got: %s", resp.Body())
}
return &pb.Entity, nil
}

Expand Down

0 comments on commit 6f541ca

Please sign in to comment.