diff --git a/core/data/emoji.go b/core/data/emoji.go index b2cbbaba4..e5690d419 100644 --- a/core/data/emoji.go +++ b/core/data/emoji.go @@ -92,7 +92,10 @@ func SetupEmojiDirectory() (err error) { continue } - memFile, err := staticFS.Open(path.path) + memFile, staticOpenErr := staticFS.Open(path.path) + if staticOpenErr != nil { + return errors.Wrap(staticOpenErr, "unable to open emoji file from embedded filesystem") + } // nolint:gosec diskFile, err := os.Create(emojiPath)