Fix error handling for #1916
This commit is contained in:
parent
49e60ab56b
commit
d5fd1bf169
@ -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…
Reference in New Issue
Block a user