diff --git a/mods/main.go b/mods/main.go index fc5ed45..43c1078 100644 --- a/mods/main.go +++ b/mods/main.go @@ -180,7 +180,8 @@ func main() { gapiCtx = context.Background() log.Println("[x-emoji] Loading emojis...") - emojis, err := emoji.ScanEmojiDirectory(*emojipath) + var err error + emojis, err = emoji.ScanEmojiDirectory(*emojipath) if err != nil { log.Printf("[x-emoji] Error while loading emojis: %s\n", err.Error()) log.Println("[x-emoji] Emoji support will be disabled")