diff options
author | sinanmohd <pcmsinan@gmail.com> | 2023-03-04 14:44:01 +0530 |
---|---|---|
committer | sinanmohd <pcmsinan@gmail.com> | 2023-03-11 19:05:05 +0530 |
commit | dfc634370d922db7ec6f8ab2c3f40ed0e1038327 (patch) | |
tree | 339e8622f572355bdee5e1466d79fbcc25187ef4 | |
parent | 442ec1448c3dfccc5510da063dc5f320cb9ae16e (diff) |
pirowatch: display error message when webtorrent fails
-rwxr-xr-x | pirowatch | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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() { |