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:
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 })
|
await run({ ...options, url, username, password })
|
||||||
} catch (err) {
|
} 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)
|
process.exit(-1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue