Node 10 is not supported anymore

This commit is contained in:
Chocobozzz 2021-12-24 13:43:59 +01:00
parent fe392059a8
commit 5a63748877
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 7 additions and 2 deletions

View File

@ -41,7 +41,12 @@ checkFFmpeg(CONFIG)
process.exit(-1)
})
checkNodeVersion()
try {
checkNodeVersion()
} catch (err) {
logger.error('Error in NodeJS check.', { err })
process.exit(-1)
}
import { checkConfig, checkActivityPubUrls, checkFFmpegVersion } from './server/initializers/checker-after-init'

View File

@ -117,7 +117,7 @@ function checkNodeVersion () {
logger.debug('Checking NodeJS version %s.', v)
if (major <= 10) {
logger.warn('Your NodeJS version %s is deprecated. Please upgrade.', v)
throw new Error('Your NodeJS version ' + v + ' is not supported. Please upgrade.')
}
}