Adds error for undefined type