Better error message for unsupported elements.