Skip to content

Commit 6f541ca

Browse files
committed
small fix
1 parent 8e769ea commit 6f541ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

port/cli/entity.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ func (c *PortClient) ReadEntity(ctx context.Context, id string, blueprint string
2222
if err != nil {
2323
return nil, err
2424
}
25+
if !pb.OK {
26+
return nil, fmt.Errorf("failed to read entity, got: %s", resp.Body())
27+
}
2528
return &pb.Entity, nil
2629
}
2730

0 commit comments

Comments
 (0)