We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1cc46e commit f2c94b5Copy full SHA for f2c94b5
src/systems/abstractsystem.jl
@@ -2282,7 +2282,7 @@ Stacktrace:
2282
"""
2283
function debug_system(sys::AbstractSystem)
2284
if has_systems(sys) && !isempty(get_systems(sys))
2285
- error("debug_system only works on systems with no sub-systems!")
+ error("debug_system(sys) only works on systems with no sub-systems! Consider flattening it with flatten(sys) or structural_simplify(sys) first.")
2286
end
2287
if has_eqs(sys)
2288
@set! sys.eqs = debug_sub.(equations(sys))
0 commit comments