Skip to content

Commit f2c94b5

Browse files
committed
Hint at flattening system in error message
1 parent e1cc46e commit f2c94b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/abstractsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2282,7 +2282,7 @@ Stacktrace:
22822282
"""
22832283
function debug_system(sys::AbstractSystem)
22842284
if has_systems(sys) && !isempty(get_systems(sys))
2285-
error("debug_system only works on systems with no sub-systems!")
2285+
error("debug_system(sys) only works on systems with no sub-systems! Consider flattening it with flatten(sys) or structural_simplify(sys) first.")
22862286
end
22872287
if has_eqs(sys)
22882288
@set! sys.eqs = debug_sub.(equations(sys))

0 commit comments

Comments
 (0)