Explorar o código

Display the error code for easier debugging

Zachary Kotlarek %!s(int64=12) %!d(string=hai) anos
pai
achega
94603aa427
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      findTorrent.pl

+ 1 - 1
findTorrent.pl

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