mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-06 17:01:33 +08:00
Fix syso generation bug
This commit is contained in:
parent
cfab21bc81
commit
96b97b25bf
@ -44,7 +44,7 @@ func GenerateSyso(options *SysoOptions) (err error) {
|
|||||||
}
|
}
|
||||||
defer func() {
|
defer func() {
|
||||||
err2 := iconFile.Close()
|
err2 := iconFile.Close()
|
||||||
if err2 != nil {
|
if err == nil && err2 != nil {
|
||||||
err = errors.Wrap(err, "error closing icon file: "+err2.Error())
|
err = errors.Wrap(err, "error closing icon file: "+err2.Error())
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user