Skip to content

Commit

Permalink
Put original error back
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
eapolinario committed Feb 20, 2025
1 parent 6de3230 commit ad7454d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion flytepropeller/pkg/controller/nodes/attr_path_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func convertInterfaceToLiteral(nodeID string, obj interface{}) (*core.Literal, e
// recursively convert the interface to literal
literal, err := convertInterfaceToLiteral(nodeID, v)
if err != nil {
return nil, errors.Errorf(errors.PromiseAttributeResolveError, nodeID, "Failed to resolve interface to literal scalar")
return nil, err
}
literals = append(literals, literal)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -567,11 +567,6 @@ func TestResolveAttrPathInBinary(t *testing.T) {
},
}

fmt.Println(toLiteralCollectionWithMsgpackBytes([]any{0, 1, 2, -1, -2}))
fmt.Println(flyteFile)
fmt.Println(flyteDirectory)
fmt.Println(literalNestedDC)

args := []struct {
literal *core.Literal
path []*core.PromiseAttribute
Expand Down

0 comments on commit ad7454d

Please sign in to comment.