Bläddra i källkod

Better runtime debugging

Zachary Kotlarek 14 år sedan
förälder
incheckning
bc7e3539fd
1 ändrade filer med 5 tillägg och 0 borttagningar
  1. 5 0
      findAllTorrents

+ 5 - 0
findAllTorrents

@@ -40,6 +40,11 @@ while read -d $'\0' SERIES ; do
 	~/bin/video/timeout -t 300 | \
 	~/bin/video/timeout -t 300 | \
 		~/bin/video/findTorrent.pl "${SERIES}" | ~/bin/download
 		~/bin/video/findTorrent.pl "${SERIES}" | ~/bin/download
 
 
+	# Print the series name on error
+	if [ $? -ne 0 ]; then
+		echo "${SERIES}"
+	fi
+
 # Loop on the null-delimited list of monitored series/seasons
 # Loop on the null-delimited list of monitored series/seasons
 done < <(~/bin/video/torrentMonitored.pl null)
 done < <(~/bin/video/torrentMonitored.pl null)