Error detection in custom user expressions