diff options
author | xegineering <me@xegineering.eu> | 2024-11-29 10:06:01 +0100 |
---|---|---|
committer | xegineering <me@xegineering.eu> | 2024-11-29 10:06:01 +0100 |
commit | 97af30e8fee2274a437a13d8c2c19e4bfe29ddee (patch) | |
tree | 3a340db8fdd70df4488357482e6c4f7cc92f5803 | |
parent | 49dc5ae3c12f2c696302171b54b130d94dea05e0 (diff) | |
download | soundbox-go-97af30e8fee2274a437a13d8c2c19e4bfe29ddee.tar soundbox-go-97af30e8fee2274a437a13d8c2c19e4bfe29ddee.tar.zst soundbox-go-97af30e8fee2274a437a13d8c2c19e4bfe29ddee.zip |
Handle internal error correctly
-rw-r--r-- | soundbox/url.go | 5 |
1 files changed, 4 insertions, 1 deletions
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() } |