From dfc634370d922db7ec6f8ab2c3f40ed0e1038327 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 4 Mar 2023 14:44:01 +0530 Subject: pirowatch: display error message when webtorrent fails --- pirowatch | 3 +++ 1 file changed, 3 insertions(+) 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() { -- cgit v1.2.3