Would it be possible to improve the error messages? For example in this case it would be nice if Hugo tells you that the function is deprecated and you should use .Match function.
We do that. When we deprecate we give a detailed WARNING. After some Hugo versions, that WARNING becomes an ERROR … But when we finally remove the method, it is no longer deprecated, and any error goes away.