We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 547c262 commit 94292f2Copy full SHA for 94292f2
src/bimodulesector.jl
@@ -178,7 +178,7 @@ function extract_dual(::Type{A4Object})
178
end
179
180
function Base.one(a::BimoduleSector)
181
- a.i == a.j || error("unit object for module categories is ill-defined")
+ a.i == a.j || throw(DomainError("unit of module category ($(a.i), $(a.j)) of $(typeof(a)) is ill-defined"))
182
return typeof(a)(a.i, a.i, _get_dual_cache(typeof(a))[1][a.i])
183
184
0 commit comments