Skip to content

Commit 7c38479

Browse files
committed
Better error reporting.
1 parent 91ba532 commit 7c38479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/validation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function safe_get_units(term, info)
4444
if err isa Unitful.DimensionError
4545
@warn("$info: $(err.x) and $(err.y) are not dimensionally compatible.")
4646
elseif err isa MethodError #TODO: filter for only instances where the arguments are unitful
47-
@warn("$info: no method matching $(err.f) for arguments $(err.args).")
47+
@warn("$info: no method matching $(err.f) for arguments $(typeof.(err.args)).")
4848
else
4949
rethrow()
5050
end

0 commit comments

Comments
 (0)