nicer error for redirect