1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Improve error handling message

This commit is contained in:
Chocobozzz 2025-05-26 09:35:16 +02:00
parent 1570d57c79
commit ca2c6139ef
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -72,7 +72,12 @@ export function defineUploadProgram () {
await run({ ...options, url, username, password }) await run({ ...options, url, username, password })
} catch (err) { } catch (err) {
if (err.code === 'ECONNREFUSED') {
console.error(`Server is not responding`)
} else {
console.error('Cannot upload video: ' + err.message) console.error('Cannot upload video: ' + err.message)
}
process.exit(-1) process.exit(-1)
} }
}) })