Skip to content

Commit 147a77b

Browse files
committed
Fix error return value
1 parent 8eb438a commit 147a77b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OperatorEnumConstruction.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function create_evaluation_helpers!(operators::GenericOperatorEnum)
4242
return tree(X, $operators; kws...)
4343
end
4444
function _grad_evaluator(tree::Node, X; kws...)
45-
@error "Gradients are not implemented for `GenericOperatorEnum`."
45+
return error("Gradients are not implemented for `GenericOperatorEnum`.")
4646
end
4747
end
4848
end

0 commit comments

Comments
 (0)