Explorar el Código

Display the error code for easier debugging

Zachary Kotlarek hace 12 años
padre
commit
94603aa427
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
 	}