Skip to content

Commit

Permalink
change argumenterror to sectormismatch; bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jutho committed Apr 14, 2020
1 parent 0f88ef3 commit ab73988
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "TensorKit"
uuid = "07d1fe3e-3e46-537d-9eac-e9e13d0d4cec"
authors = ["Jutho Haegeman"]
version = "0.3.1"
version = "0.3.2"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
2 changes: 1 addition & 1 deletion src/spaces/cartesianspace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function CartesianSpace(dim::Pair; dual = false)
return CartesianSpace(dim.second; dual = dual)
else
msg = "$(dim) is not a valid dimension for CartesianSpace"
throw(ArgumentError(msg))
throw(SectorMismatch(msg))
end
end
CartesianSpace(dim::AbstractDict; dual = false) = CartesianSpace(dim...; dual = dual)
Expand Down
2 changes: 1 addition & 1 deletion src/spaces/complexspace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function ComplexSpace(dim::Pair; dual = false)
return ComplexSpace(dim.second; dual = dual)
else
msg = "$(dim) is not a valid dimension for ComplexSpace"
throw(ArgumentError(msg))
throw(SectorMismatch(msg))
end
end
ComplexSpace(dims::AbstractDict; dual = false) = ComplexSpace(dims...; dual = dual)
Expand Down

0 comments on commit ab73988

Please sign in to comment.