Better error message for invalid expression components.