Throw an error if no controller is found