Skip to content

Commit

Permalink
Don't throw error, return false
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeR227 committed Oct 25, 2024
1 parent 87e0181 commit 99e9f31
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/acset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -652,16 +652,13 @@ function type_check(d::SummationDecapode, type_rules::AbstractVector{Operator{Sy
break
end

# TODO: Change this to error
if !check_passed
error("$(edge_function(d, op_idx, Val(table))) at $op_idx in table $table is not typed properly")
# println("$(rule)")
return false
end
check_passed || return false

end
end

# TODO: Add summation type checking

true
end

Expand Down

0 comments on commit 99e9f31

Please sign in to comment.