Nicer error message when end of partition reached