diff --git a/port/cli/entity.go b/port/cli/entity.go index 8ff582f7..77e11565 100644 --- a/port/cli/entity.go +++ b/port/cli/entity.go @@ -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 }