Преглед изворни кода

Provide more details if the match-one step fails

Zachary Kotlarek пре 14 година
родитељ
комит
2e961e335c
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      transmission.pl

+ 4 - 1
transmission.pl

@@ -145,7 +145,10 @@ foreach my $tor (@{$torrents}) {
 				push(@files, $file);
 			}
 			if (scalar(@files) != 1) {
-				print STDERR 'Unable to find a media file in: ' . $path . "\n";
+				print STDERR 'Did not find exactly 1 media file in: ' . $path . "\n";
+				foreach my $fn (@files) {
+					print STDERR "\t" . $fn . "\n";
+				}
 				next;
 			}
 			$file = $files[0];