Browse Source

Fix error handling for #1916

pull/2461/head
Gabe Kangas 3 years ago
parent
commit
d5fd1bf169
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 5
      core/data/emoji.go

5
core/data/emoji.go

@ -92,7 +92,10 @@ func SetupEmojiDirectory() (err error) { @@ -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)

Loading…
Cancel
Save