Error out when fragment is given.