Skip to content

Commit ab73988

Browse files
committed
change argumenterror to sectormismatch; bump version
1 parent 0f88ef3 commit ab73988

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "TensorKit"
22
uuid = "07d1fe3e-3e46-537d-9eac-e9e13d0d4cec"
33
authors = ["Jutho Haegeman"]
4-
version = "0.3.1"
4+
version = "0.3.2"
55

66
[deps]
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/spaces/cartesianspace.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function CartesianSpace(dim::Pair; dual = false)
1414
return CartesianSpace(dim.second; dual = dual)
1515
else
1616
msg = "$(dim) is not a valid dimension for CartesianSpace"
17-
throw(ArgumentError(msg))
17+
throw(SectorMismatch(msg))
1818
end
1919
end
2020
CartesianSpace(dim::AbstractDict; dual = false) = CartesianSpace(dim...; dual = dual)

src/spaces/complexspace.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function ComplexSpace(dim::Pair; dual = false)
1515
return ComplexSpace(dim.second; dual = dual)
1616
else
1717
msg = "$(dim) is not a valid dimension for ComplexSpace"
18-
throw(ArgumentError(msg))
18+
throw(SectorMismatch(msg))
1919
end
2020
end
2121
ComplexSpace(dims::AbstractDict; dual = false) = ComplexSpace(dims...; dual = dual)

0 commit comments

Comments
 (0)