From 5ebb98ec752b950fe9191c3cdf74f0628e375862 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Fri, 16 Nov 2018 16:42:16 +0100 Subject: [PATCH] Sometimes I think and go "wow I'm thinking" but at the end of the day I'm still as dumb as rocks (which fits crunchy rocks I guess) --- mods/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")