mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 01:39:37 +02:00
Improve error handling message
This commit is contained in:
parent
1570d57c79
commit
ca2c6139ef
1 changed files with 6 additions and 1 deletions
|
@ -72,7 +72,12 @@ export function defineUploadProgram () {
|
|||
|
||||
await run({ ...options, url, username, password })
|
||||
} catch (err) {
|
||||
console.error('Cannot upload video: ' + err.message)
|
||||
if (err.code === 'ECONNREFUSED') {
|
||||
console.error(`Server is not responding`)
|
||||
} else {
|
||||
console.error('Cannot upload video: ' + err.message)
|
||||
}
|
||||
|
||||
process.exit(-1)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue