Przeglądaj źródła

Continue processing after a file store error -- we still return failure but will attempt to store each individual file instead of stopping after the first error

Zachary Kotlarek 9 lat temu
rodzic
commit
8aa6f4feb6
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      transmission.pl

+ 1 - 2
transmission.pl

@@ -450,9 +450,8 @@ sub storeFiles($$$) {
 			}
 			last;
 		} else {
-			print STDERR 'Error storing file "' . basename($file) . '" from: ' . $name . "\n";
+			warn('Error storing file "' . basename($file) . '" from: ' . $name . "\n");
 			$failure = 1;
-			last;
 		}
 	}