aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-07-29 02:04:24 +0200
committerKim Alvefur <zash@zash.se>2023-07-29 02:04:24 +0200
commitf8a2c4d7abfb5e0817a495e17b0d61f46e7adfa8 (patch)
treea314d60ae73e9c81c5e409f64a69ccd134bdef8b /core
parent1ff9661412897a7cfa6c2ec1f1d4de7279ce9c59 (diff)
downloadprosody-f8a2c4d7abfb5e0817a495e17b0d61f46e7adfa8.tar.gz
prosody-f8a2c4d7abfb5e0817a495e17b0d61f46e7adfa8.zip
core.portmanager: Join strings broken into multiple lines
Improves readability. Reduces line count. What's not to like? The code style and luacheck rules allows longer lines, and these strings aren't long enough to need breaking into multiple lines like this.
Diffstat (limited to 'core')
-rw-r--r--core/portmanager.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/core/portmanager.lua b/core/portmanager.lua
index c1ae0685..c9b90fd7 100644
--- a/core/portmanager.lua
+++ b/core/portmanager.lua
@@ -48,14 +48,11 @@ local function error_to_friendly_message(service_name, port, err) --luacheck: ig
if err:match(" in use") then
-- FIXME: Use service_name here
if port == 5222 or port == 5223 or port == 5269 then
- friendly_message = "check that Prosody or another XMPP server is "
- .."not already running and using this port";
+ friendly_message = "check that Prosody or another XMPP server is not already running and using this port";
elseif port == 80 or port == 81 or port == 443 then
- friendly_message = "check that a HTTP server is not already using "
- .."this port";
+ friendly_message = "check that a HTTP server is not already using this port";
elseif port == 5280 then
- friendly_message = "check that Prosody or a BOSH connection manager "
- .."is not already running";
+ friendly_message = "check that Prosody or a BOSH connection manager is not already running";
else
friendly_message = "this port is in use by another application";
end