Minor fixes

This commit is contained in:
gSpot
2024-05-25 19:53:25 +03:00
parent 8918f12ef6
commit 5e0729df31

View File

@@ -485,7 +485,7 @@ function InternetDetector:stopInstance(pidFile)
end end
if not pidValue then if not pidValue then
io.stderr:write( io.stderr:write(
string.format('PID file "%s" does not exist. Is the %s not running?\n', string.format('PID file "%s" does not exists. Is the %s not running?\n',
pidFile, self.appName)) pidFile, self.appName))
end end
return retVal return retVal
@@ -537,7 +537,7 @@ function InternetDetector:preRun()
end end
if stat.stat(self.pidFile) then if stat.stat(self.pidFile) then
io.stderr:write( io.stderr:write(
string.format('PID file "%s" exist. Is the %s already running?\n', string.format('PID file "%s" exists. Is the %s already running?\n',
self.pidFile, self.appName)) self.pidFile, self.appName))
return false return false
end end