Log ERROR on missing baseurl

Fixes #877
This commit is contained in:
bep 2015-02-06 10:39:54 +01:00
parent 43e48a8989
commit 5e34ae6199

View File

@ -182,6 +182,10 @@ func InitializeConfig() {
viper.Set("BaseUrl", BaseUrl)
}
if viper.GetString("BaseUrl") == "" {
jww.ERROR.Println("No 'baseurl' set in configuration or as a flag. Features like page menus will not work without one.")
}
if Theme != "" {
viper.Set("theme", Theme)
}