Skip to content

Commit 93accdb

Browse files
Improve message upon externing DNE
1 parent 8c8d2f4 commit 93accdb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/differentials.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ is not defined.
145145
"""
146146
struct DNE <: AbstractDifferential end
147147

148-
extern(x::DNE) = throw(ArgumentError("`DNE` cannot be converted to an external type."))
148+
function extern(x::DNE)
149+
throw(ArgumentError("Derivative does not exit. Cannot be converted to an external type."))
150+
end
149151

150152
Base.Broadcast.broadcastable(::DNE) = Ref(DNE())
151153

0 commit comments

Comments
 (0)