mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
Fix https://github.com/kataras/iris/issues/570 | no-internet connection but Config.CheckForUpdates is true
This commit is contained in:
1
iris.go
1
iris.go
@@ -724,6 +724,7 @@ func (s *Framework) CheckForUpdates(force bool) {
|
|||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
writer.Write([]byte("Update failed: " + err.Error()))
|
writer.Write([]byte("Update failed: " + err.Error()))
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
updated = updater.Run(fs.Stdout(writer), fs.Stderr(writer), fs.Silent(false))
|
updated = updater.Run(fs.Stdout(writer), fs.Stderr(writer), fs.Silent(false))
|
||||||
|
|||||||
Reference in New Issue
Block a user