Skip to content

Commit

Permalink
[GH-974] Return error if SiteURL is not set on plugin activation (#981)
Browse files Browse the repository at this point in the history
Automatic Merge
  • Loading branch information
libklein authored Oct 10, 2023
1 parent 6109662 commit d1e233a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d1e233a

Please sign in to comment.