diff --git a/lib/OrdinaryDiffEqCore/src/solve.jl b/lib/OrdinaryDiffEqCore/src/solve.jl index bde6ddea77..c816f07ed9 100644 --- a/lib/OrdinaryDiffEqCore/src/solve.jl +++ b/lib/OrdinaryDiffEqCore/src/solve.jl @@ -163,8 +163,10 @@ function DiffEqBase.__init( if use_old_kwargs aliases = ODEAliasSpecifier() if haskey(kwargs, :alias_u0) - Base.depwarn("alias_u0 keyword argument is deprecated, to set `alias_u0`, - please use an ODEAliasSpecifier, e.g. `solve(prob, alias = ODEAliasSpecifier(alias_u0 = true))", :alias_u0) + message = "`alias_u0` keyword argument is deprecated, to set `alias_u0`, + please use an ODEAliasSpecifier, e.g. `solve(prob, alias = ODEAliasSpecifier(alias_u0 = true))" + Base.depwarn(message, :init) + Base.depwarn(message, :solve) @reset aliases.alias_u0 = values(kwargs).alias_u0 else @reset aliases.alias_u0 = false @@ -172,8 +174,10 @@ function DiffEqBase.__init( end if haskey(kwargs, :alias_du0) - Base.depwarn("alias_du0 keyword argument is deprecated, to set `alias_du0`, - please use an ODEAliasSpecifier, e.g. `solve(prob, alias = ODEAliasSpecifier(alias_du0 = true))", :alias_du0) + message = "`alias_du0` keyword argument is deprecated, to set `alias_du0`, + please use an ODEAliasSpecifier, e.g. `solve(prob, alias = ODEAliasSpecifier(alias_du0 = true))" + Base.depwarn(message, :init) + Base.depwarn(message, :solve) @reset aliases.alias_du0 = values(kwargs).alias_du0 else @reset aliases.alias_du0 = false