Fix plugin register when Prosody enabled but not installed (again)

This commit is contained in:
John Livingston
2021-12-01 14:47:16 +01:00
parent 01760ad78f
commit 3c19a6b7f2
2 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,7 @@ async function register (options: RegisterServerOptions): Promise<any> {
try {
await ensureProsodyRunning(options)
} catch (error) {
options.peertubeHelpers.logger('Error when launching Prosody: ' + (error as string))
options.peertubeHelpers.logger.error('Error when launching Prosody: ' + (error as string))
}
}