Skip to content

Commit 746ed96

Browse files
committed
Better error msg
1 parent 081687d commit 746ed96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/connectors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ function expand_connections(sys::AbstractSystem; debug=false, tol=1e-10)
274274
len = length(outers) + length(inners)
275275
allconnectors = Iterators.flatten((outers, inners))
276276
dups = find_duplicates(nameof(c) for c in allconnectors)
277-
length(dups) == 0 || error("$(Connection(sys)) has duplicated connections: $(dups).")
277+
length(dups) == 0 || error("Connection([$(join(map(nameof, allconnectors), ", "))]) has duplicated connections: [$(join(collect(dups), ", "))].")
278278
end
279279

280280
if debug

0 commit comments

Comments
 (0)