5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-04 02:20:47 +08:00

Fix syso generation bug

This commit is contained in:
Lea O'Anthony 2024-08-16 21:08:02 +10:00
parent cfab21bc81
commit 96b97b25bf
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405

View File

@ -44,7 +44,7 @@ func GenerateSyso(options *SysoOptions) (err error) {
}
defer func() {
err2 := iconFile.Close()
if err2 != nil {
if err == nil && err2 != nil {
err = errors.Wrap(err, "error closing icon file: "+err2.Error())
}
}()