Improve error message of Liquid::MemoryLimit.

The existing error message is too generic since there are three types of limits in place.
It is useful to know which limit was reached to make it easier to debug the error.
This commit is contained in:
Alan Tan
2020-01-14 11:43:01 +08:00
parent dbaef5e79b
commit c9be96b58d
5 changed files with 54 additions and 29 deletions
+1
View File
@@ -4,6 +4,7 @@
* Split Strainer class as a factory and a template (#1208) [Thierry Joyal]
* Remove handling of a nil context in the Strainer class (#1218) [Thierry Joyal]
* Change `Liquid::MemoryError` message to be more specific about which limit was reached. (#1206) [Alan Tan]
## 4.0.3 / 2019-03-12