Skip to content

Commit 94292f2

Browse files
committed
change error thrown for module one evaluation + format
1 parent 547c262 commit 94292f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bimodulesector.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ function extract_dual(::Type{A4Object})
178178
end
179179

180180
function Base.one(a::BimoduleSector)
181-
a.i == a.j || error("unit object for module categories is ill-defined")
181+
a.i == a.j || throw(DomainError("unit of module category ($(a.i), $(a.j)) of $(typeof(a)) is ill-defined"))
182182
return typeof(a)(a.i, a.i, _get_dual_cache(typeof(a))[1][a.i])
183183
end
184184

0 commit comments

Comments
 (0)