summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxegineering <me@xegineering.eu>2024-11-29 10:06:01 +0100
committerxegineering <me@xegineering.eu>2024-11-29 10:06:01 +0100
commit97af30e8fee2274a437a13d8c2c19e4bfe29ddee (patch)
tree3a340db8fdd70df4488357482e6c4f7cc92f5803
parent49dc5ae3c12f2c696302171b54b130d94dea05e0 (diff)
downloadsoundbox-go-97af30e8fee2274a437a13d8c2c19e4bfe29ddee.tar
soundbox-go-97af30e8fee2274a437a13d8c2c19e4bfe29ddee.tar.zst
soundbox-go-97af30e8fee2274a437a13d8c2c19e4bfe29ddee.zip
Handle internal error correctly
-rw-r--r--soundbox/url.go5
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()
}