Provide more info in get_redirect_pattern exception