From 97af30e8fee2274a437a13d8c2c19e4bfe29ddee Mon Sep 17 00:00:00 2001 From: xegineering Date: Fri, 29 Nov 2024 10:06:01 +0100 Subject: Handle internal error correctly --- soundbox/url.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/soundbox/url.go b/soundbox/url.go index b24b05d..0e9f6b6 100644 --- a/soundbox/url.go +++ b/soundbox/url.go @@ -33,7 +33,10 @@ func StreamURLContext(ctx context.Context, url string, targets []net.HardwareAdd return err } - _ = streamContext(ctx, stdout, targets) + err = streamContext(ctx, stdout, targets) + if err != nil { + return err + } return cmd.Wait() } -- cgit v1.2.3-70-g09d2