From fbfea8e38c85336741fa27e50d1afa0a73ddfa43 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sat, 18 Jul 2020 17:46:18 -0700 Subject: [PATCH] Throw and error if a stream key is not set in the config --- config/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/config.go b/config/config.go index d619d5e3a..d5b2ca144 100644 --- a/config/config.go +++ b/config/config.go @@ -115,6 +115,10 @@ func (c *config) load(filePath string) error { } func (c *config) verifySettings() error { + if c.VideoSettings.StreamingKey == "" { + return errors.New("No stream key set. Please set one in your config file.") + } + if c.S3.Enabled && c.IPFS.Enabled { return errors.New("s3 and IPFS support cannot be enabled at the same time; choose one") }