Curious if there a setting for Lucee to output err...
# lucee
j
Curious if there a setting for Lucee to output error messages with the variable name as it is in the code, i.e. camelCase - while “niceLocation” vs “NICELOCATION” might seem trivial enough, In one application I require many variables which kind of need to sound similar as they iterate on similar values, leading to rather long variable names (may not be ideal, but that’s beside the point here - it helps others/clients understand what is happening in the code). So when Lucee 'shouts' back [UPSSYSTEMRUNTIMEINCLUDINGAGEINGRESERVEINMINUTESONLY] doesn’t exist”, it takes my old brain a bit longer to read it than if it were to show “upsSystemRuntimeIncludingAgeingReserveInMinutesOnly”. Cheers!
z
could try
👍 1
m
this setting will do the trick, downside is that code like this
serialize({susi:1})
will give a different result.
before you got
{"SUSI":1}
and after
{"susi":1}
but to answer you initial question, if set to upper case the compiler itself does translate the string to upper case and this info no longer is available to the runtime