aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <pcmsinan@gmail.com>2023-03-04 14:44:01 +0530
committersinanmohd <pcmsinan@gmail.com>2023-03-11 19:05:05 +0530
commitdfc634370d922db7ec6f8ab2c3f40ed0e1038327 (patch)
tree339e8622f572355bdee5e1466d79fbcc25187ef4
parent442ec1448c3dfccc5510da063dc5f320cb9ae16e (diff)
pirowatch: display error message when webtorrent fails
-rwxr-xr-xpirowatch3
1 files changed, 3 insertions, 0 deletions
diff --git a/pirowatch b/pirowatch
index df4bb3f..f75949a 100755
--- a/pirowatch
+++ b/pirowatch
@@ -44,6 +44,9 @@ stream() {
else
webtorrent --mpv -o "$cache_dir" --torrent-port "$torrent_port" --dht-port "$dht_port" "$1"
fi
+
+ [ "$?" != 0 ] &&
+ die "webtorrent failed to play"
}
set_index() {