From e23cb29836d9c52bef466598d3c8fbd7d4e3adbc Mon Sep 17 00:00:00 2001 From: lkdvos Date: Wed, 20 Sep 2023 17:36:07 +0200 Subject: [PATCH] Fix invalid syntax for julia 1.6 --- src/tensors/linalg.jl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/tensors/linalg.jl b/src/tensors/linalg.jl index 757363f8..174d4731 100644 --- a/src/tensors/linalg.jl +++ b/src/tensors/linalg.jl @@ -390,8 +390,8 @@ end function catdomain(t1::AbstractTensorMap{S,N₁,1}, t2::AbstractTensorMap{S,N₁,1}) where {S,N₁} codomain(t1) == codomain(t2) || - throw(SpaceMismatch("codomains of tensors to concatenate must match:\n\ - $(codomain(t1)) ≠ $(codomain(t2))")) + throw(SpaceMismatch("codomains of tensors to concatenate must match:\n" * + "$(codomain(t1)) ≠ $(codomain(t2))")) V1, = domain(t1) V2, = domain(t2) isdual(V1) == isdual(V2) || @@ -408,9 +408,8 @@ end function catcodomain(t1::AbstractTensorMap{S,1,N₂}, t2::AbstractTensorMap{S,1,N₂}) where {S,N₂} domain(t1) == domain(t2) || - throw(SpaceMismatch("domains of tensors to concatenate must match:\n\ - $(domain(t1)) ≠ $(domain(t2))")) - + throw(SpaceMismatch("domains of tensors to concatenate must match:\n" * + "$(domain(t1)) ≠ $(domain(t2))")) V1, = codomain(t1) V2, = codomain(t2) isdual(V1) == isdual(V2) ||