Missing return for error