From 9b5caacb28f4c55502299f6e15d9d54392f81083 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Fri, 16 Apr 2021 15:23:08 +0200 Subject: [PATCH] Display prosody port. --- server/lib/diagnostic/prosody.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/lib/diagnostic/prosody.ts b/server/lib/diagnostic/prosody.ts index 89f5dbd2..a259b349 100644 --- a/server/lib/diagnostic/prosody.ts +++ b/server/lib/diagnostic/prosody.ts @@ -21,6 +21,8 @@ export async function diagProsody (test: string, options: RegisterServerOptions) const wantedConfig = await getProsodyConfig(options) const filePath = wantedConfig.paths.config + result.messages.push(`Prosody will run on port '${wantedConfig.port}'`) + await fs.promises.access(filePath, fs.constants.R_OK) // throw an error if file does not exist. result.messages.push(`The prosody configuration file (${filePath}) exists`) const actualContent = await fs.promises.readFile(filePath, {