improve error message if follow does not point to a leaf