Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Fix error handling for #1916

Gabe Kangasd69b6f4ea80f
diff --git a/core/data/emoji.go b/core/data/emoji.go
index b2cbbaba41..e5690d419d 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)