mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 10:58:57 +00:00
This is not an ignorable error, because it can happen if we fail to allocate a free port for the GUI or sync port on first startup.
This commit is contained in:
parent
1c5af3a4bd
commit
5c54d879a1
@ -527,7 +527,10 @@ func (e errNoUpgrade) Error() string {
|
||||
}
|
||||
|
||||
func checkUpgrade() (upgrade.Release, error) {
|
||||
cfg, _ := loadOrDefaultConfig(protocol.EmptyDeviceID, events.NoopLogger)
|
||||
cfg, err := loadOrDefaultConfig(protocol.EmptyDeviceID, events.NoopLogger)
|
||||
if err != nil {
|
||||
return upgrade.Release{}, err
|
||||
}
|
||||
opts := cfg.Options()
|
||||
release, err := upgrade.LatestRelease(opts.ReleasesURL, build.Version, opts.UpgradeToPreReleases)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user