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 e180e14 commit f28413dCopy full SHA for f28413d
src/systems/validation.jl
@@ -93,9 +93,9 @@ end
93
function get_unit(op::Conditional, args)
94
terms = get_unit.(args)
95
terms[1] == unitless ||
96
- throw(ValidationError(", in $x, [$(terms[1])] is not dimensionless."))
+ throw(ValidationError(", in $op, [$(terms[1])] is not dimensionless."))
97
equivalent(terms[2], terms[3]) ||
98
- throw(ValidationError(", in $x, units [$(terms[2])] and [$(terms[3])] do not match."))
+ throw(ValidationError(", in $op, units [$(terms[2])] and [$(terms[3])] do not match."))
99
return terms[2]
100
end
101
0 commit comments