소스 검색

Display the error code for easier debugging

Zachary Kotlarek 12 년 전
부모
커밋
94603aa427
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  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;
 	}