Skip to content

Commit f28413d

Browse files
committed
fix a typo in unit check error handling
1 parent e180e14 commit f28413d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems/validation.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ end
9393
function get_unit(op::Conditional, args)
9494
terms = get_unit.(args)
9595
terms[1] == unitless ||
96-
throw(ValidationError(", in $x, [$(terms[1])] is not dimensionless."))
96+
throw(ValidationError(", in $op, [$(terms[1])] is not dimensionless."))
9797
equivalent(terms[2], terms[3]) ||
98-
throw(ValidationError(", in $x, units [$(terms[2])] and [$(terms[3])] do not match."))
98+
throw(ValidationError(", in $op, units [$(terms[2])] and [$(terms[3])] do not match."))
9999
return terms[2]
100100
end
101101

0 commit comments

Comments
 (0)