From d1e233af901f5a4c3b652fee260857c74d1c6d44 Mon Sep 17 00:00:00 2001 From: Patrick Klein <42714034+libklein@users.noreply.github.com> Date: Tue, 10 Oct 2023 05:21:15 +0100 Subject: [PATCH] [GH-974] Return error if SiteURL is not set on plugin activation (#981) Automatic Merge --- server/plugin.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/plugin.go b/server/plugin.go index 632f39c23..eb1ed8c33 100644 --- a/server/plugin.go +++ b/server/plugin.go @@ -247,6 +247,8 @@ func (p *Plugin) OnActivate() error { ptr := p.client.Configuration.GetConfig().ServiceSettings.SiteURL if ptr != nil { mattermostSiteURL = *ptr + } else { + return errors.New("please configure the Mattermost server's SiteURL, then restart the plugin.") } err = p.setDefaultConfiguration()