diff --git a/cmd/switch.go b/cmd/switch.go index 32ecb5a..db16266 100644 --- a/cmd/switch.go +++ b/cmd/switch.go @@ -148,6 +148,10 @@ func fuzzySwitchDevice(conf *helper.Config) spotify.ID { } }) if err != nil { + if err.Error() == "abort" { + fmt.Println("Aborted switch") + os.Exit(0) + } glog.Fatal(err) } return devices[idx].ID