diff --git a/src/pkg/whatsapp/init.go b/src/pkg/whatsapp/init.go index c556eb7..5a153d8 100644 --- a/src/pkg/whatsapp/init.go +++ b/src/pkg/whatsapp/init.go @@ -69,6 +69,11 @@ func InitWaCLI(storeContainer *sqlstore.Container) *whatsmeow.Client { panic(err) } + if device == nil { + log.Errorf("No device found") + panic("No device found") + } + osName := fmt.Sprintf("%s %s", config.AppOs, config.AppVersion) store.DeviceProps.PlatformType = &config.AppPlatform store.DeviceProps.Os = &osName