view defined for error