Changed flist_for_ndx() to optionally die with an error
[rsync/rsync.git] / sender.c
index c8ef7cc..ba1d6ff 100644 (file)
--- a/sender.c
+++ b/sender.c
@@ -125,13 +125,7 @@ void successful_send(int ndx)
        if (!remove_source_files)
                return;
 
-       if (!(flist = flist_for_ndx(ndx))) {
-               rprintf(FERROR,
-                       "INTERNAL ERROR: unable to find flist for item %d\n",
-                       ndx);
-               return;
-       }
-
+       flist = flist_for_ndx(ndx, "successful_send");
        file = flist->files[ndx - flist->ndx_start];
        if (!change_pathname(file, NULL, 0))
                return;