Explorar o código

Better runtime debugging

Zachary Kotlarek %!s(int64=14) %!d(string=hai) anos
pai
achega
bc7e3539fd
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      findAllTorrents

+ 5 - 0
findAllTorrents

@@ -40,6 +40,11 @@ while read -d $'\0' SERIES ; do
 	~/bin/video/timeout -t 300 | \
 		~/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
 done < <(~/bin/video/torrentMonitored.pl null)