now throws
The function [toList] does not exist in the Object, only the following functions are available: [toJson].
previously it threw
The function [toList] does not exist in the Object, only the following functions are available: [append,clear,copy,count,delete,duplicate,each,every,filter,find,findKey,findValue,insert,isEmpty,keyArray,keyExists,keyList,keyTranslate,len,map,reduce,some,sort,update]
sometimes Lucee says object, other times Struct
or Array, it’s just not as immediately clear as it could be. I find always myself asking, what Object? it’s a cfc?
improved the message, if we have the type we show it
so it shows now all functions, it has a space between them and we show the type.
but can you move the
Only the following functions are available: [append, clear, copy, count, delete, duplicate, each, every, filter, find, findKey, findValue, insert, isEmpty, keyArray, keyExists, keyList, keyTranslate, len, map, reduce, some, sort, toJson, update, valueArray].
to the exception detail? It’s more readable and doesn’t fill up the logs (which are all currently repeated )
the message is done with help of ExceptionUtil.similarKeyMessage(…) what need to be changed to ExceptionUtil.similarKeyMessageAndDetail(…) what is used in many places. so if we do that split we should do it for all occurrences, but as part of a different ticket, could you raise a separate ticket for that?