diff --git a/subsystems/viamagent/viamagent.go b/subsystems/viamagent/viamagent.go index 17d87a3..9a16c19 100644 --- a/subsystems/viamagent/viamagent.go +++ b/subsystems/viamagent/viamagent.go @@ -227,8 +227,8 @@ func getServiceFilePath(logger *zap.SugaredLogger) (string, bool, error) { if err == nil { return serviceFilePath, true, nil } - if errw.Is(err, fs.ErrNotExist) { - // unknown error + if !errw.Is(err, fs.ErrNotExist) { + // unknown error when checking old service file path return "", false, err }