Parcourir la source

Display the error code for easier debugging

Zachary Kotlarek il y a 12 ans
Parent
commit
94603aa427
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      findTorrent.pl

+ 1 - 1
findTorrent.pl

@@ -568,7 +568,7 @@ foreach my $url (@urls) {
 
 	# Check for errors
 	if ($fetch->status_code() != 200) {
-		print STDERR 'Error fetching URL: ' . $url . "\n";
+		print STDERR 'Error fetching URL (' . $fetch->status_code() . '): ' . $url . "\n";
 		next;
 	}