aboutsummaryrefslogtreecommitdiffhomepage
path: root/packages/peertube-runner/peertube-runner.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/peertube-runner/peertube-runner.ts')
-rw-r--r--packages/peertube-runner/peertube-runner.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/peertube-runner/peertube-runner.ts b/packages/peertube-runner/peertube-runner.ts
index 9c3e498d6..858d85e6a 100644
--- a/packages/peertube-runner/peertube-runner.ts
+++ b/packages/peertube-runner/peertube-runner.ts
@@ -31,7 +31,7 @@ program.command('server')
31 try { 31 try {
32 await RunnerServer.Instance.run() 32 await RunnerServer.Instance.run()
33 } catch (err) { 33 } catch (err) {
34 logger.error('Cannot run PeerTube runner as server mode', err) 34 logger.error(err, 'Cannot run PeerTube runner as server mode')
35 process.exit(-1) 35 process.exit(-1)
36 } 36 }
37 }) 37 })
@@ -46,7 +46,8 @@ program.command('register')
46 try { 46 try {
47 await registerRunner(options) 47 await registerRunner(options)
48 } catch (err) { 48 } catch (err) {
49 logger.error('Cannot register this PeerTube runner.', err) 49 console.error('Cannot register this PeerTube runner.')
50 console.error(err)
50 process.exit(-1) 51 process.exit(-1)
51 } 52 }
52 }) 53 })
@@ -58,7 +59,8 @@ program.command('unregister')
58 try { 59 try {
59 await unregisterRunner(options) 60 await unregisterRunner(options)
60 } catch (err) { 61 } catch (err) {
61 logger.error('Cannot unregister this PeerTube runner.', err) 62 console.error('Cannot unregister this PeerTube runner.')
63 console.error(err)
62 process.exit(-1) 64 process.exit(-1)
63 } 65 }
64 }) 66 })
@@ -69,7 +71,8 @@ program.command('list-registered')
69 try { 71 try {
70 await listRegistered() 72 await listRegistered()
71 } catch (err) { 73 } catch (err) {
72 logger.error('Cannot list registered PeerTube instances.', err) 74 console.error('Cannot list registered PeerTube instances.')
75 console.error(err)
73 process.exit(-1) 76 process.exit(-1)
74 } 77 }
75 }) 78 })