COOKLANG_E9401: Ratio cannot be computed
Level: error(fatal)
What this error means
The ratio between two quantities cannot be computed because one of them is not numeric.
Common causes
- Merging equivalents where one of the equivalent quantities is text-only, e.g.
@flour{1%cup|a bit}then@&flour{2%cup|a lot}
During Recipe.parse(), this is collected with the other diagnostics and thrown after the source has been processed. During scaleBy() or convertTo(), it is thrown directly by the operation that needs the ratio.
How to fix it
Use numeric quantities for every equivalent that needs to be merged with another occurrence of the same ingredient.